From e7d1849be176f456002b5d0de260e5235bd1eba7 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Thu, 14 Jun 2012 10:55:30 -0700 Subject: adding a test for #6459 --- actionpack/test/controller/routing_test.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'actionpack/test/controller') 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")) -- cgit v1.2.3