Skip to content

Commit

Permalink
Also set the log of the test suite to a file as it used to be
Browse files Browse the repository at this point in the history
  • Loading branch information
sikachu committed Sep 3, 2011
1 parent 37385dd commit 639b250
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/helper.rb
Expand Up @@ -48,6 +48,7 @@ def setup
config = YAML::load(IO.read(File.dirname(__FILE__) + '/database.yml'))
ActiveRecord::Base.logger = ActiveSupport::BufferedLogger.new(File.dirname(__FILE__) + "/debug.log")
ActiveRecord::Base.establish_connection(config['test'])
Paperclip.options[:logger] = ActiveRecord::Base.logger

def reset_class class_name
ActiveRecord::Base.send(:include, Paperclip::Glue)
Expand Down

0 comments on commit 639b250

Please sign in to comment.