Skip to content

Commit

Permalink
Setting paperclip logger to the same as active_record for tests. Clea…
Browse files Browse the repository at this point in the history
…ner output is the result.
  • Loading branch information
Bertg committed Nov 12, 2011
1 parent eca793b commit f611d5f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ def setup
config = YAML::load(IO.read(File.dirname(__FILE__) + '/database.yml'))
ActiveRecord::Base.logger = Logger.new(File.dirname(__FILE__) + "/debug.log")
ActiveRecord::Base.establish_connection(config['test'])
Paperclip.logger = ActiveRecord::Base.logger

# def reset_dummy(options = {})
# reset_dummy(options)
Expand Down

0 comments on commit f611d5f

Please sign in to comment.