Permalink
Browse files

Stub logger for tests

  • Loading branch information...
1 parent 9c89b29 commit 120f6e07f6c8af7f4e86d79de4210b9242343bdf @ka8725 ka8725 committed Jun 5, 2013
Showing with 4 additions and 0 deletions.
  1. +4 −0 activemodel/test/cases/railtie_test.rb
@@ -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

0 comments on commit 120f6e0

Please sign in to comment.