aboutsummaryrefslogtreecommitdiffstats
path: root/activejob/test/cases/test_helper_test.rb
diff options
context:
space:
mode:
authorYves Senn <yves.senn@gmail.com>2014-09-23 10:43:59 +0200
committerYves Senn <yves.senn@gmail.com>2014-09-23 10:44:44 +0200
commit017294066fd7f54401d13db116f59655553e6b8c (patch)
tree81f1d8cf8ab14b6f436b72aa6a3acd8b2424b447 /activejob/test/cases/test_helper_test.rb
parent92cef19519c82e6e4c592b1d34652fa8c854ab29 (diff)
parent39bef5823ff611c8e3a066ab398e2dd763888f9a (diff)
downloadrails-017294066fd7f54401d13db116f59655553e6b8c.tar.gz
rails-017294066fd7f54401d13db116f59655553e6b8c.tar.bz2
rails-017294066fd7f54401d13db116f59655553e6b8c.zip
Merge pull request #17005 from y-yagi/fix_aj_test_helper
add message to `assert` in `assert_enqueued_with`
Diffstat (limited to 'activejob/test/cases/test_helper_test.rb')
-rw-r--r--activejob/test/cases/test_helper_test.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/activejob/test/cases/test_helper_test.rb b/activejob/test/cases/test_helper_test.rb
index eab540bb6c..71c505a65f 100644
--- a/activejob/test/cases/test_helper_test.rb
+++ b/activejob/test/cases/test_helper_test.rb
@@ -97,11 +97,13 @@ class EnqueuedJobsTest < ActiveJob::TestCase
end
end
- assert_raise ActiveSupport::TestCase::Assertion do
+ error = assert_raise ActiveSupport::TestCase::Assertion do
assert_enqueued_with(job: NestedJob, queue: 'low') do
NestedJob.perform_later
end
end
+
+ assert_equal 'No enqueued job found with {:job=>NestedJob, :queue=>"low"}', error.message
end
def test_assert_enqueued_job_args