Skip to content

Commit 5da6e2a

Browse files
authored
Provide more complex example for #2015
1 parent 30426ce commit 5da6e2a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/rspec/rails/matchers/active_job.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -244,9 +244,8 @@ def matches?(job)
244244
# expect {
245245
# HelloJob.perform_later('rspec_rails', %w[ world rspec rails ], 42)
246246
# }.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
247+
# # Perform more complex argument matching using dynamic arguments
248+
# expect(from).to include "_#{to}"
250249
# }
251250
def have_enqueued_job(job = nil)
252251
check_active_job_adapter

0 commit comments

Comments
 (0)