diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2017-01-31 15:45:28 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-31 15:45:28 -0500 |
commit | 4f4906b52383468c72aa212c2dab345a3d1b63af (patch) | |
tree | 75f4e2e583fdd2fd8a94eecd6bbb8f3d2747b56b /activejob/test | |
parent | 22f4392bb45adc1dab414d547bff8a2745041597 (diff) | |
parent | 08ddca51c688d8abc4ba56bd11c03de021caad18 (diff) | |
download | rails-4f4906b52383468c72aa212c2dab345a3d1b63af.tar.gz rails-4f4906b52383468c72aa212c2dab345a3d1b63af.tar.bz2 rails-4f4906b52383468c72aa212c2dab345a3d1b63af.zip |
Merge pull request #27850 from apauly/feature/active_job_test_helper
Feature/active job test helper
Diffstat (limited to 'activejob/test')
-rw-r--r-- | activejob/test/cases/test_helper_test.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/activejob/test/cases/test_helper_test.rb b/activejob/test/cases/test_helper_test.rb index 5488ce3d58..372b68c2f5 100644 --- a/activejob/test/cases/test_helper_test.rb +++ b/activejob/test/cases/test_helper_test.rb @@ -56,6 +56,17 @@ class EnqueuedJobsTest < ActiveJob::TestCase end end + def test_assert_enqueued_jobs_when_performing_with_only_option + assert_nothing_raised do + assert_enqueued_jobs 1, only: HelloJob do + perform_enqueued_jobs only: LoggingJob do + HelloJob.perform_later("sean") + LoggingJob.perform_later("yves") + end + end + end + end + def test_assert_no_enqueued_jobs_with_no_block assert_nothing_raised do assert_no_enqueued_jobs |