fix: remove unused changes in supplier model test
This commit is contained in:
parent
1a2b23ec88
commit
d52f56ebe1
1 changed files with 2 additions and 6 deletions
|
@ -19,13 +19,9 @@ describe Supplier do
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'return correct tolerance' do
|
it 'return correct tolerance' do
|
||||||
supplier = create :supplier
|
supplier = create :supplier, articles: create_list(:article, 1, unit_quantity: 1)
|
||||||
articles = create_list(:article, 1, unit_quantity: 1, supplier_id: supplier.id)
|
|
||||||
supplier.reload
|
|
||||||
expect(supplier.has_tolerance?).to be false
|
expect(supplier.has_tolerance?).to be false
|
||||||
supplier2 = create :supplier
|
supplier2 = create :supplier, articles: create_list(:article, 1, unit_quantity: 2)
|
||||||
articles = create_list(:article, 1, unit_quantity: 2, supplier_id: supplier2.id)
|
|
||||||
supplier.reload
|
|
||||||
expect(supplier2.has_tolerance?).to be true
|
expect(supplier2.has_tolerance?).to be true
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue