Browse files

load active_record and action_mailer before requiring delayed_job

  • Loading branch information...
1 parent 1b5c586 commit 0af736eaae22d51c0c1cac1bd487f2c61d327efa @bkeepers bkeepers committed Sep 8, 2010
Showing with 3 additions and 2 deletions.
  1. +3 −2 spec/spec_helper.rb
View
5 spec/spec_helper.rb
@@ -5,14 +5,15 @@
require 'spec'
require 'logger'
+require 'active_record'
+require 'action_mailer'
+
require 'delayed_job'
require 'delayed/backend/shared_spec'
Delayed::Worker.logger = Logger.new('/tmp/dj.log')
ENV['RAILS_ENV'] = 'test'
-require 'active_record'
-
ActiveRecord::Base.establish_connection(:adapter => 'sqlite3', :database => ':memory:')
ActiveRecord::Base.logger = Delayed::Worker.logger
ActiveRecord::Migration.verbose = false

0 comments on commit 0af736e

Please sign in to comment.