Permalink
Browse files

set Delayed::Worker.logger in specs

  • Loading branch information...
1 parent da4b5d0 commit d3512808e17342beac9cf0706c1b60bddb9c8768 @bkeepers bkeepers committed Jan 19, 2010
Showing with 4 additions and 2 deletions.
  1. +4 −2 spec/spec_helper.rb
View
@@ -4,8 +4,10 @@
require 'spec'
require 'active_record'
require 'delayed_job'
-
-ActiveRecord::Base.logger = Logger.new('/tmp/dj.log')
+
+logger = Logger.new('/tmp/dj.log')
+ActiveRecord::Base.logger = logger
+Delayed::Worker.logger = logger
ActiveRecord::Base.establish_connection(:adapter => 'sqlite3', :database => ':memory:')
ActiveRecord::Migration.verbose = false

0 comments on commit d351280

Please sign in to comment.