Skip to content

Commit 3ad2d64

Browse files
author
Joel Lubrano
committed
Call strftime in test to get some semblance of timestamp verification
1 parent d67824f commit 3ad2d64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/rspec/rails/matchers/have_enqueued_mail_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ def email_with_optional_args(required_arg, optional_arg = nil); end
196196
expect {
197197
expect { TestMailer.test_email.deliver_later(:wait_until => send_time + 1) }
198198
.to have_enqueued_email(TestMailer, :test_email).at(send_time)
199-
}.to raise_error(/expected to enqueue TestMailer.test_email exactly 1 time at/)
199+
}.to raise_error(/expected to enqueue TestMailer.test_email exactly 1 time at #{send_time.strftime('%F %T')}/)
200200
end
201201

202202
it "passes when deliver_later is called with a queue argument" do

0 commit comments

Comments
 (0)