Permalink
Browse files

Merge pull request #26885 from lastgabs/fix-active-job-test

Uses queue adapter_method instead of ActiveJob::Base.queue_adapter
  • Loading branch information...
rafaelfranca committed Oct 25, 2016
2 parents d34a274 + 393f25b commit e9e31af188b8a8f88e06269581757e835b67259c
Showing with 2 additions and 2 deletions.
  1. +2 −2 activejob/test/cases/test_helper_test.rb
@@ -250,7 +250,7 @@ def test_assert_enqueued_job_does_not_change_jobs_count
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 @@ def test_assert_performed_job_does_not_change_jobs_count
HelloJob.perform_later
end
assert_equal 2, ActiveJob::Base.queue_adapter.performed_jobs.count
assert_equal 2, queue_adapter.performed_jobs.count
end
end

0 comments on commit e9e31af

Please sign in to comment.