aboutsummaryrefslogtreecommitdiffstats
path: root/activejob/lib/active_job/test_helper.rb
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2018-06-30 17:48:32 +0900
committerGitHub <noreply@github.com>2018-06-30 17:48:32 +0900
commit8ae3d17c9275cf65ec5891f046ad512bb9e8f9bd (patch)
tree748821b3476e21821ec686b7dba639a9968fda42 /activejob/lib/active_job/test_helper.rb
parente295e51b83762e04217b3f93fb12a1c7d7ba8ec5 (diff)
parent58271f63144b74f192d0b37a1f7b3a469307974b (diff)
downloadrails-8ae3d17c9275cf65ec5891f046ad512bb9e8f9bd.tar.gz
rails-8ae3d17c9275cf65ec5891f046ad512bb9e8f9bd.tar.bz2
rails-8ae3d17c9275cf65ec5891f046ad512bb9e8f9bd.zip
Merge pull request #33263 from bogdanvlviv/follow-up-33258
Clarify activejob/lib/active_job/test_helper.rb
Diffstat (limited to 'activejob/lib/active_job/test_helper.rb')
-rw-r--r--activejob/lib/active_job/test_helper.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activejob/lib/active_job/test_helper.rb b/activejob/lib/active_job/test_helper.rb
index 0a9ca3a814..0ab3c5126d 100644
--- a/activejob/lib/active_job/test_helper.rb
+++ b/activejob/lib/active_job/test_helper.rb
@@ -322,8 +322,8 @@ module ActiveJob
jobs = enqueued_jobs
end
- matching_job = jobs.find do |in_block_job|
- serialized_args.all? { |key, value| value == in_block_job[key] }
+ matching_job = jobs.find do |enqueued_job|
+ serialized_args.all? { |key, value| value == enqueued_job[key] }
end
assert matching_job, "No enqueued job found with #{expected}"