Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix build Rails.queue

  • Loading branch information...
commit a28efd8ac682dae0c47532afe1bc7710800713bf 1 parent 34b23e7
@arunagw arunagw authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 actionpack/test/abstract_unit.rb
View
6 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
Please sign in to comment.
Something went wrong with that request. Please try again.