Test rounded at cents
This commit is contained in:
parent
07ba6f0535
commit
610cd8fce4
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_within(1e-3).of(shared_article.price/5)
|
expect(article.price).to be_within(0.005).of(shared_article.price/5)
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'does not synchronise when it has no order number' do
|
it 'does not synchronise when it has no order number' do
|
||||||
|
|
Loading…
Reference in a new issue