aboutsummaryrefslogtreecommitdiffstats
path: root/activejob/lib
diff options
context:
space:
mode:
authorbogdanvlviv <bogdanvlviv@gmail.com>2018-06-29 19:35:47 +0300
committerbogdanvlviv <bogdanvlviv@gmail.com>2018-06-29 19:46:55 +0300
commit58271f63144b74f192d0b37a1f7b3a469307974b (patch)
tree78a39ea2da3bd235bcee480d048c3fb914acd162 /activejob/lib
parenta9692941600c34afbc8d60d15cb5f179d30f67e5 (diff)
downloadrails-58271f63144b74f192d0b37a1f7b3a469307974b.tar.gz
rails-58271f63144b74f192d0b37a1f7b3a469307974b.tar.bz2
rails-58271f63144b74f192d0b37a1f7b3a469307974b.zip
Clarify activejob/lib/active_job/test_helper.rb
Rename `in_block_job` to `enqueued_job` since this variable can refer not only to jobs that were created in the block. See #33258. Return back accidentally removed test to activejob/test/cases/test_helper_test.rb See #33258. Fix name of tests.
Diffstat (limited to 'activejob/lib')
-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}"