1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

- Remove duplication in AJ logging test for setting logger.

- Remove un-needed require in AJ rescue test.
This commit is contained in:
Vipul A M 2014-10-20 12:38:11 +05:30
parent c417311c4a
commit 2965e1671d
2 changed files with 1 additions and 3 deletions

View file

@ -33,7 +33,7 @@ class AdapterTest < ActiveSupport::TestCase
def teardown
super
ActiveJob::Logging::LogSubscriber.log_subscribers.pop
ActiveJob::Base.logger = @old_logger
set_logger @old_logger
end
def set_logger(logger)

View file

@ -2,8 +2,6 @@ require 'helper'
require 'jobs/rescue_job'
require 'models/person'
require 'active_support/core_ext/object/inclusion'
class RescueTest < ActiveSupport::TestCase
setup do
JobBuffer.clear