diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2012-06-14 10:55:30 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2012-06-14 14:12:14 -0700 |
commit | e7d1849be176f456002b5d0de260e5235bd1eba7 (patch) | |
tree | 3abf36fc7e39110e96f9e2108e0072d085912739 /actionpack/test/controller/routing_test.rb | |
parent | 7f937914576c65a01f3a9528d1728720c6c400c5 (diff) | |
download | rails-e7d1849be176f456002b5d0de260e5235bd1eba7.tar.gz rails-e7d1849be176f456002b5d0de260e5235bd1eba7.tar.bz2 rails-e7d1849be176f456002b5d0de260e5235bd1eba7.zip |
adding a test for #6459
Diffstat (limited to 'actionpack/test/controller/routing_test.rb')
-rw-r--r-- | actionpack/test/controller/routing_test.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/actionpack/test/controller/routing_test.rb b/actionpack/test/controller/routing_test.rb index e2e57ec292..7079a6ff90 100644 --- a/actionpack/test/controller/routing_test.rb +++ b/actionpack/test/controller/routing_test.rb @@ -280,6 +280,16 @@ class LegacyRouteSetTests < Test::Unit::TestCase end end + def test_specific_controller_action_failure + @rs.draw do + mount lambda {} => "/foo" + end + + assert_raises(ActionController::RoutingError) do + url_for(@rs, :controller => "omg", :action => "lol") + end + end + def test_default_setup @rs.draw { match '/:controller(/:action(/:id))' } assert_equal({:controller => "content", :action => 'index'}, rs.recognize_path("/content")) |