1
0
Fork 0
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:
Andrey Koleshko 2013-06-06 02:57:58 +03:00
parent 9c89b29138
commit 120f6e07f6

View file

@ -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