diff options
author | Gabi Stefanini <gabriela.stefanini@shopify.com> | 2016-10-24 22:25:48 -0400 |
---|---|---|
committer | Gabi Stefanini <gabriela.stefanini@shopify.com> | 2016-10-24 22:25:48 -0400 |
commit | 393f25bdba83f79a352da4c46bb0925caaea524a (patch) | |
tree | a127543fc3f5a6eae0822ed97b0d66a3fd37c43d /activejob | |
parent | d34a2747cb43cc7f23d134e2853879ef4888e372 (diff) | |
download | rails-393f25bdba83f79a352da4c46bb0925caaea524a.tar.gz rails-393f25bdba83f79a352da4c46bb0925caaea524a.tar.bz2 rails-393f25bdba83f79a352da4c46bb0925caaea524a.zip |
Uses queue adapter_method instead of ActiveJob::Base.queue_adapter
Change ActiveJob::Base.queue_adapter to use queue_adapter method to make test code consistent.
Diffstat (limited to 'activejob')
-rw-r--r-- | activejob/test/cases/test_helper_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activejob/test/cases/test_helper_test.rb b/activejob/test/cases/test_helper_test.rb index 253c557cc5..685c93da2d 100644 --- a/activejob/test/cases/test_helper_test.rb +++ b/activejob/test/cases/test_helper_test.rb @@ -250,7 +250,7 @@ class EnqueuedJobsTest < ActiveJob::TestCase HelloJob.perform_later end - assert_equal 2, ActiveJob::Base.queue_adapter.enqueued_jobs.count + assert_equal 2, queue_adapter.enqueued_jobs.count end end @@ -507,7 +507,7 @@ class PerformedJobsTest < ActiveJob::TestCase HelloJob.perform_later end - assert_equal 2, ActiveJob::Base.queue_adapter.performed_jobs.count + assert_equal 2, queue_adapter.performed_jobs.count end end |