diff options
-rw-r--r-- | actionpack/test/abstract_unit.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/actionpack/test/abstract_unit.rb b/actionpack/test/abstract_unit.rb index 4f5b2895c9..3b0b6e929f 100644 --- a/actionpack/test/abstract_unit.rb +++ b/actionpack/test/abstract_unit.rb @@ -26,6 +26,7 @@ require 'active_model' 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 @@ module Rails 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 |