diff options
author | Kevin Deisz <kevin.deisz@gmail.com> | 2015-05-07 18:32:15 -0400 |
---|---|---|
committer | Kevin Deisz <kevin.deisz@gmail.com> | 2015-05-07 19:17:22 -0400 |
commit | 221a411fd79a25c062100e43423188df5ac4bf2f (patch) | |
tree | 81971d73bfcd23b3d6f3041915b7fda559be3240 /activejob/test/support | |
parent | 6d951bda36c60d3d377ef63b22a855fbd2735df3 (diff) | |
download | rails-221a411fd79a25c062100e43423188df5ac4bf2f.tar.gz rails-221a411fd79a25c062100e43423188df5ac4bf2f.tar.bz2 rails-221a411fd79a25c062100e43423188df5ac4bf2f.zip |
Provide provider_job_id to qu adapter.
Further work to provide provider_job_id for queue adapters.
Diffstat (limited to 'activejob/test/support')
-rw-r--r-- | activejob/test/support/integration/test_case_helpers.rb | 4 |
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) |