We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9451eca commit c6fe3e6Copy full SHA for c6fe3e6
spec/models/event_spec.rb
@@ -99,7 +99,7 @@
99
100
expect {
101
DistributionEvent.create!(eventable: eventable, organization_id: organization.id, data: payload)
102
- }.to raise_error(ActiveRecord::RecordInvalid, /Cannot change inventory for an distribution that has an intervening snapshot/)
+ }.to raise_error(ActiveRecord::RecordInvalid, /Cannot change inventory for an distribution created before #{1.day.ago.to_date}/)
103
end
104
105
0 commit comments