From 4219eff0ab6a2fd9f74ed521c62ba971c5b4640f Mon Sep 17 00:00:00 2001 From: wvengen Date: Wed, 13 Nov 2013 23:22:26 +0100 Subject: [PATCH] fix rspec warning --- spec/models/article_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/models/article_spec.rb b/spec/models/article_spec.rb index f791f232..bd0d991c 100644 --- a/spec/models/article_spec.rb +++ b/spec/models/article_spec.rb @@ -103,7 +103,7 @@ describe Article do article.update_attributes! updated_article.attributes.reject{|k,v| k=='id' or k=='type'} expect(article.unit).to eq '200g' expect(article.unit_quantity).to eq 5 - expect(article.price).to be_close(shared_article.price/5, 1e-3) + expect(article.price).to be_within(1e-3).of(shared_article.price/5) end end end