Test rounded at cents

This commit is contained in:
wvengen 2015-01-18 02:06:16 +01:00
parent 07ba6f0535
commit 610cd8fce4

View file

@ -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_within(1e-3).of(shared_article.price/5)
expect(article.price).to be_within(0.005).of(shared_article.price/5)
end
it 'does not synchronise when it has no order number' do