diff options
author | Ben Pickles <spideryoung@gmail.com> | 2013-10-09 11:16:22 +0100 |
---|---|---|
committer | Ben Pickles <spideryoung@gmail.com> | 2013-10-09 12:25:29 +0100 |
commit | 4de8851289077239ecc91473bdba30f8cf6727bb (patch) | |
tree | bfb9c7a2ff31fe7ad168f3df4f3fded34cb83664 /railties/test | |
parent | 941516dabcc5fd02eb736f457197bd115c85f2fb (diff) | |
download | rails-4de8851289077239ecc91473bdba30f8cf6727bb.tar.gz rails-4de8851289077239ecc91473bdba30f8cf6727bb.tar.bz2 rails-4de8851289077239ecc91473bdba30f8cf6727bb.zip |
Expose MiddlewareStack#unshift to environment configuration.
Diffstat (limited to 'railties/test')
-rw-r--r-- | railties/test/application/middleware_test.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/railties/test/application/middleware_test.rb b/railties/test/application/middleware_test.rb index 31a35a09bb..20d1d76d78 100644 --- a/railties/test/application/middleware_test.rb +++ b/railties/test/application/middleware_test.rb @@ -144,6 +144,12 @@ module ApplicationTests assert_equal "Rack::Config", middleware.second end + test 'unshift middleware' do + add_to_config 'config.middleware.unshift Rack::Config' + boot! + assert_equal 'Rack::Config', middleware.first + end + test "Rails.cache does not respond to middleware" do add_to_config "config.cache_store = :memory_store" boot! |