aboutsummaryrefslogtreecommitdiffstats
path: root/activejob/test
diff options
context:
space:
mode:
authorAlexander Pauly <alex.pauly@gmx.de>2017-01-30 19:47:54 +0100
committerAlexander Pauly <alex.pauly@gmx.de>2017-01-31 07:36:19 +0100
commit08ddca51c688d8abc4ba56bd11c03de021caad18 (patch)
treebdc283a4919cb7b7f17eabe310eba990f5002d33 /activejob/test
parent341fab88a3605705a4a7c96c43e1f8c17f719607 (diff)
downloadrails-08ddca51c688d8abc4ba56bd11c03de021caad18.tar.gz
rails-08ddca51c688d8abc4ba56bd11c03de021caad18.tar.bz2
rails-08ddca51c688d8abc4ba56bd11c03de021caad18.zip
Append skipped jobs to enqueued_jobs
Refactored ActiveJob TestAdapter Updated ActiveJob changelog Fixed typo in changelog Fixed formatting issue in changelog
Diffstat (limited to 'activejob/test')
-rw-r--r--activejob/test/cases/test_helper_test.rb11
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