diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2012-09-12 05:00:56 -0700 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2012-09-12 05:00:56 -0700 |
commit | d46c36258b07d89bd193f716dd521aeee2b90bd8 (patch) | |
tree | 4b83c60bde1977ddc3fec8c494fe3afcf46aae49 /actionpack | |
parent | b83e24e874956ffb28ecc8e49ebe2ccfee7e31f5 (diff) | |
parent | a28efd8ac682dae0c47532afe1bc7710800713bf (diff) | |
download | rails-d46c36258b07d89bd193f716dd521aeee2b90bd8.tar.gz rails-d46c36258b07d89bd193f716dd521aeee2b90bd8.tar.bz2 rails-d46c36258b07d89bd193f716dd521aeee2b90bd8.zip |
Merge pull request #7612 from arunagw/build_fix_queue
Fix build Rails.queue
Diffstat (limited to 'actionpack')
-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 |