mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Fix updated_at issue in RemoveTransientData spec
The value in the test setup was not what was expected after the updates to touching the updated_at columns.
This commit is contained in:
@@ -49,6 +49,10 @@ describe RemoveTransientData do
|
||||
let!(:old_line_item) { create(:line_item, order: old_cart, variant: variant) }
|
||||
let!(:old_adjustment) { create(:adjustment, order: old_cart) }
|
||||
|
||||
before do
|
||||
old_cart.update_columns(updated_at: short_retention - 1.day)
|
||||
end
|
||||
|
||||
it 'deletes cart orders and related objects older than retention_period' do
|
||||
RemoveTransientData.new.call
|
||||
|
||||
|
||||
Reference in New Issue
Block a user