First round of code review change

This commit is contained in:
Gaetan Craig-Riou
2024-06-17 11:39:44 +10:00
parent c328ee8087
commit 3788b33eb0

View File

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