aboutsummaryrefslogtreecommitdiffstats
path: root/activejob/test
diff options
context:
space:
mode:
authoryuuji.yaginuma <yuuji.yaginuma@gmail.com>2014-09-22 23:40:41 +0900
committeryuuji.yaginuma <yuuji.yaginuma@gmail.com>2014-09-23 08:50:32 +0900
commit39bef5823ff611c8e3a066ab398e2dd763888f9a (patch)
treebd8b2145bf84dfab8a381a130da5594ba66fbab8 /activejob/test
parent7aca4a721ee9ba7f7ba4043f7199080cf7282d62 (diff)
downloadrails-39bef5823ff611c8e3a066ab398e2dd763888f9a.tar.gz
rails-39bef5823ff611c8e3a066ab398e2dd763888f9a.tar.bz2
rails-39bef5823ff611c8e3a066ab398e2dd763888f9a.zip
add message to `assert` in `assert_enqueued_with`
Diffstat (limited to 'activejob/test')
-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..7be3143eba 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