Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

adding a test for #6459

  • Loading branch information...
commit 28e744d682f82c370646c688e99b72a3393e1e14 1 parent 666a48a
Aaron Patterson tenderlove authored
Showing with 10 additions and 0 deletions.
  1. +10 −0 actionpack/test/controller/routing_test.rb
10 actionpack/test/controller/routing_test.rb
View
@@ -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"))
Please sign in to comment.
Something went wrong with that request. Please try again.