Skip to content

Commit c6fe3e6

Browse files
committed
oops
1 parent 9451eca commit c6fe3e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/models/event_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999

100100
expect {
101101
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/)
102+
}.to raise_error(ActiveRecord::RecordInvalid, /Cannot change inventory for an distribution created before #{1.day.ago.to_date}/)
103103
end
104104
end
105105
end

0 commit comments

Comments
 (0)