Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

set Delayed::Worker.logger in specs

  • Loading branch information...
commit d3512808e17342beac9cf0706c1b60bddb9c8768 1 parent da4b5d0
@bkeepers bkeepers authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 spec/spec_helper.rb
View
6 spec/spec_helper.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.