Skip to content

Commit

Permalink
Fix cucumber scenarios
Browse files Browse the repository at this point in the history
  • Loading branch information
JonRowe committed Mar 7, 2022
1 parent 6fd11ab commit 5174152
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions features/matchers/have_enqueued_mail_matcher.feature
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ Feature: have_enqueued_mail matcher
# Works with named parameters
expect {
MyMailer.with(foo: 'bar').signup.deliver_later
}.to have_enqueued_mail(MyMailer, :signup).with(foo: 'bar')
}.to have_enqueued_mail(MyMailer, :signup).with(a_hash_including(params: {foo: 'bar'}))
end
end
"""
Expand Down Expand Up @@ -120,7 +120,7 @@ Feature: have_enqueued_mail matcher
# Works also with both, named parameters match first argument
expect {
MyMailer.with(foo: 'bar').signup('user').deliver_later
}.to have_enqueued_mail(MyMailer, :signup).with({foo: 'bar'}, 'user')
}.to have_enqueued_mail(MyMailer, :signup).with(params: {foo: 'bar'}, args: ['user'])
end
end
"""
Expand Down

0 comments on commit 5174152

Please sign in to comment.