Skip to content

Commit 5174152

Browse files
committed
Fix cucumber scenarios
1 parent 6fd11ab commit 5174152

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

features/matchers/have_enqueued_mail_matcher.feature

+2-2
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ Feature: have_enqueued_mail matcher
9090
# Works with named parameters
9191
expect {
9292
MyMailer.with(foo: 'bar').signup.deliver_later
93-
}.to have_enqueued_mail(MyMailer, :signup).with(foo: 'bar')
93+
}.to have_enqueued_mail(MyMailer, :signup).with(a_hash_including(params: {foo: 'bar'}))
9494
end
9595
end
9696
"""
@@ -120,7 +120,7 @@ Feature: have_enqueued_mail matcher
120120
# Works also with both, named parameters match first argument
121121
expect {
122122
MyMailer.with(foo: 'bar').signup('user').deliver_later
123-
}.to have_enqueued_mail(MyMailer, :signup).with({foo: 'bar'}, 'user')
123+
}.to have_enqueued_mail(MyMailer, :signup).with(params: {foo: 'bar'}, args: ['user'])
124124
end
125125
end
126126
"""

0 commit comments

Comments
 (0)