diff options
author | José Valim <jose.valim@gmail.com> | 2010-07-06 00:39:13 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-07-06 00:39:13 +0200 |
commit | 8079484b118e6dc8ffe3575b50c3857acd5b1a6d (patch) | |
tree | b9208f7b1c0fe08ef34a4390e5c97d34fba972c6 /actionpack/test | |
parent | 6671d9cdc1cc40a6cdd365902f76d4aca78a410c (diff) | |
download | rails-8079484b118e6dc8ffe3575b50c3857acd5b1a6d.tar.gz rails-8079484b118e6dc8ffe3575b50c3857acd5b1a6d.tar.bz2 rails-8079484b118e6dc8ffe3575b50c3857acd5b1a6d.zip |
Recognize should also work with route is wrapped in a constraint.
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/dispatch/routing_test.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/actionpack/test/dispatch/routing_test.rb b/actionpack/test/dispatch/routing_test.rb index 1eb5d32ec3..463a62cd53 100644 --- a/actionpack/test/dispatch/routing_test.rb +++ b/actionpack/test/dispatch/routing_test.rb @@ -45,7 +45,10 @@ class TestRoutingMapper < ActionDispatch::IntegrationTest match 'account/logout' => redirect("/logout"), :as => :logout_redirect match 'account/login', :to => redirect("/login") - match 'account/overview' + constraints(lambda { |req| true }) do + match 'account/overview' + end + match '/account/nested/overview' match 'sign_in' => "sessions#new" |