diff options
author | José Valim <jose.valim@gmail.com> | 2011-12-16 10:29:45 +0100 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2011-12-16 10:45:59 +0100 |
commit | 192e55c38ed9b48672b9e216c9805b782b835d78 (patch) | |
tree | 605ac731ca968efefcea18eec1b350574a170075 /actionpack/test/dispatch | |
parent | 5359262695b491422b18c565567e16ad50f6155e (diff) | |
download | rails-192e55c38ed9b48672b9e216c9805b782b835d78.tar.gz rails-192e55c38ed9b48672b9e216c9805b782b835d78.tar.bz2 rails-192e55c38ed9b48672b9e216c9805b782b835d78.zip |
Do not raise an exception if an invalid route was generated automatically.
Diffstat (limited to 'actionpack/test/dispatch')
-rw-r--r-- | actionpack/test/dispatch/routing_test.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/actionpack/test/dispatch/routing_test.rb b/actionpack/test/dispatch/routing_test.rb index bc4e2e31c8..5325f81364 100644 --- a/actionpack/test/dispatch/routing_test.rb +++ b/actionpack/test/dispatch/routing_test.rb @@ -91,6 +91,7 @@ class TestRoutingMapper < ActionDispatch::IntegrationTest match "/local/:action", :controller => "local" match "/projects/status(.:format)" + match "/404", :to => lambda { |env| [404, {"Content-Type" => "text/plain"}, ["NOT FOUND"]] } constraints(:ip => /192\.168\.1\.\d\d\d/) do get 'admin' => "queenbee#index" |