Skip to content

Commit

Permalink
adding a test for rails#6459
Browse files Browse the repository at this point in the history
  • Loading branch information
tenderlove committed Jun 14, 2012
1 parent 666a48a commit 28e744d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions actionpack/test/controller/routing_test.rb
Expand Up @@ -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"))
Expand Down

0 comments on commit 28e744d

Please sign in to comment.