diff options
author | Arun Agrawal <arunagw@gmail.com> | 2012-09-12 09:50:16 +0530 |
---|---|---|
committer | Arun Agrawal <arunagw@gmail.com> | 2012-09-12 09:50:16 +0530 |
commit | a28efd8ac682dae0c47532afe1bc7710800713bf (patch) | |
tree | 7aacacffd62382ed184511810286fbb02dd0c0a4 | |
parent | 34b23e7110a3a13cf157608cefc9b5701017bf39 (diff) | |
download | rails-a28efd8ac682dae0c47532afe1bc7710800713bf.tar.gz rails-a28efd8ac682dae0c47532afe1bc7710800713bf.tar.bz2 rails-a28efd8ac682dae0c47532afe1bc7710800713bf.zip |
Fix build Rails.queue
see 34b23e7110a3a13cf157608cefc9b5701017bf39
-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 |