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.
1 parent fc0fc77 commit 1719fb3Copy full SHA for 1719fb3
lib/rspec/rails/matchers/active_job.rb
@@ -244,9 +244,8 @@ def matches?(job)
244
# expect {
245
# HelloJob.perform_later('rspec_rails', %w[ world rspec rails ], 42)
246
# }.to have_enqueued_job.with { |_from, to, times|
247
- # # I don't want to check argument `from`
248
- # expect(to).to include 'rspec'
249
- # expect(times).to eq 42
+ # # Perform more complex argument matching using dynamic arguments
+ # expect(from).to include "_#{to}"
250
# }
251
def have_enqueued_job(job = nil)
252
check_active_job_adapter
0 commit comments