-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Closed
Labels
Description
Because of rails/rails@f5050d9
have_enqueued_mail with options is broken
for example, we have a Mailer service:
class MailerTestService
def save
MailtestMailer.mailtest(option: { foo: 'bar' }).deliver_later
end
end
and test
RSpec.describe MailerTestService, type: :service do
it do
expect { described_class.new.save }
.to have_enqueued_mail(MailtestMailer, :mailtest)
.with(option: { foo: 'bar' })
end
end
it will not match because arguments serialization in rails/rails@f5050d9#diff-e264d3f0104c3e213b6402459897ee61R144 updated, but not updated yet in rspec-rails
Already working on a solution, will push PR soon.
related #2184
benoittgt, pirj, Neilos, ta1kt0me, in-hale and 7 more