Permalink
Browse files

adding a test for #6459

  • Loading branch information...
1 parent 666a48a commit 28e744d682f82c370646c688e99b72a3393e1e14 @tenderlove tenderlove committed Jun 14, 2012
Showing with 10 additions and 0 deletions.
  1. +10 −0 actionpack/test/controller/routing_test.rb
View
10 actionpack/test/controller/routing_test.rb
@@ -207,6 +207,16 @@ def test_draw_with_block_arity_one_raises
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"))

0 comments on commit 28e744d

Please sign in to comment.