mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Add broken test
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6724 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
parent
a5fe13e871
commit
2ca6f57f85
1 changed files with 5 additions and 0 deletions
|
@ -924,6 +924,11 @@ class RouteTest < Test::Unit::TestCase
|
|||
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_
|
||||
@route.expects(:requirement_for).with(:controller).times(1).returns('pages')
|
||||
|
|
Loading…
Reference in a new issue