fix rspec warning
This commit is contained in:
parent
588898d7b0
commit
4219eff0ab
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue