diff options
author | Emilio Tagua <miloops@gmail.com> | 2010-10-15 17:32:18 -0300 |
---|---|---|
committer | Emilio Tagua <miloops@gmail.com> | 2010-11-19 19:08:56 -0300 |
commit | 69b627ef670b1dc7fee0b5d25903cebdeed49576 (patch) | |
tree | 0d4f22e612d2706ec3345d4937f208a906f73c1a /railties/test | |
parent | 48edab9ba07fccfd0c44ecb2b5675383bdb36851 (diff) | |
download | rails-69b627ef670b1dc7fee0b5d25903cebdeed49576.tar.gz rails-69b627ef670b1dc7fee0b5d25903cebdeed49576.tar.bz2 rails-69b627ef670b1dc7fee0b5d25903cebdeed49576.zip |
Don't load IdentityMap middleware if not enabled. Simplify middleware.
Diffstat (limited to 'railties/test')
-rw-r--r-- | railties/test/application/middleware_test.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/railties/test/application/middleware_test.rb b/railties/test/application/middleware_test.rb index 9820a92918..f74fa594d9 100644 --- a/railties/test/application/middleware_test.rb +++ b/railties/test/application/middleware_test.rb @@ -107,6 +107,11 @@ module ApplicationTests assert_equal "Rack::Runtime", middleware.fourth end + test "identity map is inserted" do + boot! + assert_equal "ActiveRecord::IdentityMap::Middleware", middleware[9] + end + test "insert middleware before" do add_to_config "config.middleware.insert_before ActionDispatch::Static, Rack::Config" boot! |