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.
2 parents c8bb896 + 3a1eeb8 commit 3045532Copy full SHA for 3045532
spec/models/case_contact_spec.rb
@@ -38,7 +38,7 @@
38
end
39
40
it "verifies occurred at is not in the future" do
41
- case_contact = build_stubbed(:case_contact, occurred_at: Time.current + 1.week)
+ case_contact = build_stubbed(:case_contact, occurred_at: 1.week.from_now)
42
expect(case_contact).not_to be_valid
43
expect(case_contact.errors[:occurred_at]).to eq(["can't be in the future"])
44
0 commit comments