Permalink
Browse files

Merge pull request #7612 from arunagw/build_fix_queue

Fix build Rails.queue
  • Loading branch information...
2 parents b83e24e + a28efd8 commit d46c36258b07d89bd193f716dd521aeee2b90bd8 @carlosantoniodasilva carlosantoniodasilva committed Sep 12, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 actionpack/test/abstract_unit.rb
@@ -26,6 +26,7 @@
require 'active_record'
require 'action_controller/caching'
require 'action_controller/caching/sweeping'
+require 'rails/queueing'
require 'pp' # require 'pp' early to prevent hidden_methods from not picking up the pretty-print methods until too late
@@ -34,6 +35,11 @@ class << self
def env
@_env ||= ActiveSupport::StringInquirer.new(ENV["RAILS_ENV"] || ENV["RACK_ENV"] || "test")
end
+
+ def queue
+ @queue ||= Rails::Queueing::Container.new(Rails::Queueing::SynchronousQueue.new)
+ end
+
end
end

0 comments on commit d46c362

Please sign in to comment.