spec/helper.rb in delayed_job-4.1.6.beta1 vs spec/helper.rb in delayed_job-4.1.6
- old
+ new
@@ -12,11 +12,10 @@
require 'logger'
require 'rspec'
require 'action_mailer'
-require 'active_support/dependencies'
require 'active_record'
require 'delayed_job'
require 'delayed/backend/shared_spec'
@@ -42,12 +41,9 @@
Delayed::Worker.backend = :test
# Add this directory so the ActiveSupport autoloading works
ActiveSupport::Dependencies.autoload_paths << File.dirname(__FILE__)
-
-# Add this to simulate Railtie initializer being executed
-ActionMailer::Base.extend(Delayed::DelayMail)
# Used to test interactions between DJ and an ORM
ActiveRecord::Base.establish_connection :adapter => 'sqlite3', :database => ':memory:'
ActiveRecord::Base.logger = Delayed::Worker.logger
ActiveRecord::Migration.verbose = false