fix: remove unused changes in supplier model test

This commit is contained in:
Philipp Rothmann 2023-03-05 11:33:31 +01:00
parent 1a2b23ec88
commit d52f56ebe1

View file

@ -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