Skip to content

Commit

Permalink
RSPEC
Browse files Browse the repository at this point in the history
  - logs are now truncated before each run [closes #4]
  • Loading branch information
DBA committed Nov 12, 2010
1 parent b191c68 commit 22e15d6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@
if File.exists?(database_yml_file)
active_record_configuration = YAML.load_file(database_yml_file)['test']
ActiveRecord::Base.establish_connection(active_record_configuration)

File.truncate(File.join(File.dirname(__FILE__), 'log', 'test.log'), 0)

ActiveRecord::Base.logger = Logger.new(File.join(File.dirname(__FILE__), 'log', 'test.log'))

ActiveRecord::Base.silence do
Expand Down

0 comments on commit 22e15d6

Please sign in to comment.