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:17:06 -0700 |
commit | b92860fa880a3cfe7863cb9f99d6e5c4245f8ae7 (patch) | |
tree | 58b7d68401ea99c6631ada85aa6a6d5acd15671d /actionpack | |
parent | 906215f15babae2e3758ea474c13a17665754dbe (diff) | |
download | rails-b92860fa880a3cfe7863cb9f99d6e5c4245f8ae7.tar.gz rails-b92860fa880a3cfe7863cb9f99d6e5c4245f8ae7.tar.bz2 rails-b92860fa880a3cfe7863cb9f99d6e5c4245f8ae7.zip |
adding a test for #6459
Diffstat (limited to 'actionpack')
-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 2f552c3a5a..306b8a93da 100644 --- a/actionpack/test/controller/routing_test.rb +++ b/actionpack/test/controller/routing_test.rb @@ -270,6 +270,16 @@ class LegacyRouteSetTests < ActiveSupport::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 { get '/:controller(/:action(/:id))' } assert_equal({:controller => "content", :action => 'index'}, rs.recognize_path("/content")) |