mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Stub logger for tests
This commit is contained in:
parent
9c89b29138
commit
120f6e07f6
1 changed files with 4 additions and 0 deletions
|
@ -7,8 +7,12 @@ class RailtieTest < ActiveModel::TestCase
|
|||
def setup
|
||||
require 'active_model/railtie'
|
||||
|
||||
# Set a fake logger to avoid creating the log directory automatically
|
||||
fake_logger = mock()
|
||||
|
||||
@app ||= Class.new(::Rails::Application) do
|
||||
config.eager_load = false
|
||||
config.logger = fake_logger
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue