fix rspec warning

This commit is contained in:
wvengen 2013-11-13 23:22:26 +01:00
parent 588898d7b0
commit 4219eff0ab

View file

@ -103,7 +103,7 @@ describe Article do
article.update_attributes! updated_article.attributes.reject{|k,v| k=='id' or k=='type'} article.update_attributes! updated_article.attributes.reject{|k,v| k=='id' or k=='type'}
expect(article.unit).to eq '200g' expect(article.unit).to eq '200g'
expect(article.unit_quantity).to eq 5 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 end
end end