diff options
author | Abdelkader Boudih <terminale@gmail.com> | 2014-09-02 14:06:19 +0000 |
---|---|---|
committer | Abdelkader Boudih <terminale@gmail.com> | 2014-09-02 14:26:43 +0000 |
commit | d7add5352e7c8b31850431bb93acb56d93c5dc64 (patch) | |
tree | ed1d37439b1d736af387ac356cc542e1a837d07b /activejob/test | |
parent | fccf3d0b6304a7b8dacad05b63f24cdf41e652df (diff) | |
download | rails-d7add5352e7c8b31850431bb93acb56d93c5dc64.tar.gz rails-d7add5352e7c8b31850431bb93acb56d93c5dc64.tar.bz2 rails-d7add5352e7c8b31850431bb93acb56d93c5dc64.zip |
[ActiveJob] TestCase (Will squash before merge)
Diffstat (limited to 'activejob/test')
-rw-r--r-- | activejob/test/cases/test_case_test.rb | 1 | ||||
-rw-r--r-- | activejob/test/cases/test_helper_test.rb | 5 |
2 files changed, 2 insertions, 4 deletions
diff --git a/activejob/test/cases/test_case_test.rb b/activejob/test/cases/test_case_test.rb index 802a796fd1..1d0fdbd22d 100644 --- a/activejob/test/cases/test_case_test.rb +++ b/activejob/test/cases/test_case_test.rb @@ -1,4 +1,3 @@ -# encoding: utf-8 require 'helper' require 'jobs/hello_job' require 'jobs/logging_job' diff --git a/activejob/test/cases/test_helper_test.rb b/activejob/test/cases/test_helper_test.rb index ee558e6d59..240aa23ce3 100644 --- a/activejob/test/cases/test_helper_test.rb +++ b/activejob/test/cases/test_helper_test.rb @@ -1,4 +1,3 @@ -# encoding: utf-8 require 'helper' require 'active_support/core_ext/time' require 'active_support/core_ext/date' @@ -74,7 +73,7 @@ class EnqueuedJobsTest < ActiveJob::TestCase assert_match(/1 .* but 2/, error.message) end - # + def test_assert_no_enqueued_jobs_failure error = assert_raise ActiveSupport::TestCase::Assertion do assert_no_enqueued_jobs do @@ -182,7 +181,7 @@ class PerformedJobsTest < ActiveJob::TestCase assert_match(/1 .* but 2/, error.message) end - # + def test_assert_no_performed_jobs_failure error = assert_raise ActiveSupport::TestCase::Assertion do assert_no_performed_jobs do |