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:
parent
c417311c4a
commit
2965e1671d
2 changed files with 1 additions and 3 deletions
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue