diff options
author | wycats <wycats@gmail.com> | 2010-09-13 14:03:06 -0700 |
---|---|---|
committer | Carlhuda <carlhuda@engineyard.com> | 2010-09-13 16:06:03 -0700 |
commit | 254ab7d916e579b9300951f5f33d3c5d3ee755a2 (patch) | |
tree | 722bb7e82ecdcef9bac2383e766c0a7fb398c6d1 /railties/test/application | |
parent | 9cd094b8da492b711002dd4b1f2792f315e9bde0 (diff) | |
download | rails-254ab7d916e579b9300951f5f33d3c5d3ee755a2.tar.gz rails-254ab7d916e579b9300951f5f33d3c5d3ee755a2.tar.bz2 rails-254ab7d916e579b9300951f5f33d3c5d3ee755a2.zip |
First pass at Rack::Cache
Diffstat (limited to 'railties/test/application')
-rw-r--r-- | railties/test/application/middleware_test.rb | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/railties/test/application/middleware_test.rb b/railties/test/application/middleware_test.rb index ed8f70dc44..0ce6d482a0 100644 --- a/railties/test/application/middleware_test.rb +++ b/railties/test/application/middleware_test.rb @@ -19,6 +19,7 @@ module ApplicationTests boot! assert_equal [ + "Rack::Cache", "ActionDispatch::Static", "Rack::Lock", "ActiveSupport::Cache::Strategy::LocalCache", @@ -81,24 +82,24 @@ module ApplicationTests test "insert middleware after" do add_to_config "config.middleware.insert_after ActionDispatch::Static, Rack::Config" boot! - assert_equal "Rack::Config", middleware.second + assert_equal "Rack::Config", middleware.third 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 + assert_equal "Rack::Runtime", middleware.fourth end test "RAILS_CACHE does respond to middleware" do boot! - assert_equal "Rack::Runtime", middleware.fourth + assert_equal "Rack::Runtime", middleware.fifth end test "insert middleware before" do add_to_config "config.middleware.insert_before ActionDispatch::Static, Rack::Config" boot! - assert_equal "Rack::Config", middleware.first + assert_equal "Rack::Config", middleware.second end # x_sendfile_header middleware |