mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
First round of code review change
This commit is contained in:
@@ -838,8 +838,8 @@ RSpec.describe Spree::Variant do
|
||||
end
|
||||
|
||||
it "touches the supplier" do
|
||||
supplier = create(:supplier_enterprise)
|
||||
variant = create(:variant, supplier:, updated_at: 1.hour.ago)
|
||||
supplier = create(:supplier_enterprise, updated_at: 1.hour.ago)
|
||||
variant = create(:variant, supplier:)
|
||||
|
||||
expect { variant.destroy }.to change { supplier.reload.updated_at }
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user