diff options
author | José Valim <jose.valim@gmail.com> | 2010-01-26 15:27:40 +0100 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-01-26 15:27:46 +0100 |
commit | edb8131535c74ac215bf36c0d58d2019ed091a74 (patch) | |
tree | bac5defe29f0ac5aff95a3692e36eadab01a1d55 /railties/test/application | |
parent | 517b35a2bbe5ec381fecbbc54e67ba053f9da420 (diff) | |
download | rails-edb8131535c74ac215bf36c0d58d2019ed091a74.tar.gz rails-edb8131535c74ac215bf36c0d58d2019ed091a74.tar.bz2 rails-edb8131535c74ac215bf36c0d58d2019ed091a74.zip |
Move Rails::Rack::Metal to Rails::Application::Metal and just add cascade if any metal was declared.
Diffstat (limited to 'railties/test/application')
-rw-r--r-- | railties/test/application/middleware_test.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/railties/test/application/middleware_test.rb b/railties/test/application/middleware_test.rb index 31696598ce..0b92cdba54 100644 --- a/railties/test/application/middleware_test.rb +++ b/railties/test/application/middleware_test.rb @@ -23,7 +23,6 @@ module ApplicationTests "ActionDispatch::Cookies", "ActionDispatch::Session::CookieStore", "ActionDispatch::Flash", - "ActionDispatch::Cascade", "ActionDispatch::ParamsParser", "Rack::MethodOverride", "ActionDispatch::Head", @@ -70,6 +69,12 @@ module ApplicationTests assert_equal "Rack::Config", middleware.first end + test "shows cascade if any metal exists" do + app_file "app/metal/foo.rb", "class Foo; end" + boot! + assert middleware.include?("ActionDispatch::Cascade") + end + private def boot! require "#{app_path}/config/environment" |