diff options
author | Neeraj Singh <neerajdotname@gmail.com> | 2010-06-24 12:42:09 -0400 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-06-24 20:08:50 +0200 |
commit | 81c5684267b0341a1537c2db83a820bcff8dc808 (patch) | |
tree | df88c8f25dd892ae8e3b614bd3028b52f0215268 /railties/test | |
parent | 974196b0910924d08640703cc558c48ca049246a (diff) | |
download | rails-81c5684267b0341a1537c2db83a820bcff8dc808.tar.gz rails-81c5684267b0341a1537c2db83a820bcff8dc808.tar.bz2 rails-81c5684267b0341a1537c2db83a820bcff8dc808.zip |
adding middleware test for RAILS_CACHE
Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'railties/test')
-rw-r--r-- | railties/test/application/middleware_test.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/railties/test/application/middleware_test.rb b/railties/test/application/middleware_test.rb index 999f666a64..e66e81ea2c 100644 --- a/railties/test/application/middleware_test.rb +++ b/railties/test/application/middleware_test.rb @@ -83,6 +83,17 @@ module ApplicationTests assert_equal "Rack::Config", middleware.second end + test "RAILS_CACHE does not respond to middleware" do + add_to_config "config.cache_store = :memory_store" + boot! + assert_equal "Rack::Runtime", middleware.third + end + + test "RAILS_CACHE does respond to middleware" do + boot! + assert_equal "Rack::Runtime", middleware.fourth + end + test "insert middleware before" do add_to_config "config.middleware.insert_before ActionDispatch::Static, Rack::Config" boot! |