Skip to content

Commit

Permalink
Add broken test
Browse files Browse the repository at this point in the history
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6724 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information
seckar committed May 12, 2007
1 parent a5fe13e commit 2ca6f57
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions actionpack/test/controller/routing_test.rb
Expand Up @@ -923,6 +923,11 @@ def test_default_route_should_work_with_action_but_no_id
o = {:controller => 'accounts', :action => 'list_all'}
assert_equal '/accounts/list_all', default_route.generate(o, o, {})
end

def test_default_route_should_escape_pluses_in_id
expected = {:controller => 'accounts', :action => 'show', :id => 'hello world'}
assert_equal expected, default_route.recognize('/accounts/show/hello+world')
end

def test_matches_controller_and_action
# requirement_for should only be called for the action and controller _once_
Expand Down

0 comments on commit 2ca6f57

Please sign in to comment.