Permalink
Browse files

Fix build Rails.queue

  • Loading branch information...
1 parent 34b23e7 commit a28efd8ac682dae0c47532afe1bc7710800713bf @arunagw arunagw 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 a28efd8

Please sign in to comment.