aboutsummaryrefslogtreecommitdiffstats
path: root/activejob/test/support/integration/test_case_helpers.rb
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2015-05-08 15:13:05 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2015-05-08 15:13:05 -0300
commitfca8a7a7ba4047d3843219f9403c059f40fe0de2 (patch)
tree2c4055f11ebe7d134d04a08d3eb4a1e4ce5960dc /activejob/test/support/integration/test_case_helpers.rb
parent7b975c54d1e8c70bfeb82b15303ab18204de7b33 (diff)
parent221a411fd79a25c062100e43423188df5ac4bf2f (diff)
downloadrails-fca8a7a7ba4047d3843219f9403c059f40fe0de2.tar.gz
rails-fca8a7a7ba4047d3843219f9403c059f40fe0de2.tar.bz2
rails-fca8a7a7ba4047d3843219f9403c059f40fe0de2.zip
Merge pull request #20064 from kddeisz/qu_provider_job_id
Provide provider_job_id to qu adapter.
Diffstat (limited to 'activejob/test/support/integration/test_case_helpers.rb')
-rw-r--r--activejob/test/support/integration/test_case_helpers.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activejob/test/support/integration/test_case_helpers.rb b/activejob/test/support/integration/test_case_helpers.rb
index bed28b2900..7e87ede275 100644
--- a/activejob/test/support/integration/test_case_helpers.rb
+++ b/activejob/test/support/integration/test_case_helpers.rb
@@ -27,8 +27,8 @@ module TestCaseHelpers
jobs_manager.clear_jobs
end
- def adapter_is?(adapter_class_symbol)
- ActiveJob::Base.queue_adapter.class.name.split("::").last.gsub(/Adapter$/, '').underscore == adapter_class_symbol.to_s
+ def adapter_is?(*adapter_class_symbols)
+ adapter_class_symbols.map(&:to_s).include?(ActiveJob::Base.queue_adapter.class.name.split("::").last.gsub(/Adapter$/, '').underscore)
end
def wait_for_jobs_to_finish_for(seconds=60)