From 39bef5823ff611c8e3a066ab398e2dd763888f9a Mon Sep 17 00:00:00 2001 From: "yuuji.yaginuma" Date: Mon, 22 Sep 2014 23:40:41 +0900 Subject: add message to `assert` in `assert_enqueued_with` --- activejob/test/cases/test_helper_test.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'activejob/test/cases') 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 -- cgit v1.2.3