Included a test for page names with spaces.

Upgraded to Rails 2.0.2 routing code.  Kept the "old" CGI-style escaping rather than using URI.escape.
This commit is contained in:
Jason Blevins 2007-12-24 16:02:14 -05:00
parent feed609d86
commit f1106428dc
2 changed files with 372 additions and 245 deletions

View file

@ -46,8 +46,8 @@ class RoutesTest < Test::Unit::TestCase
end
def test_cases_broken_by_routes
# assert_routing('web/show/Page+With+Spaces',
# :controller => 'wiki', :web => 'web', :action => 'show', :id => 'Page With Spaces')
assert_routing('web/show/Page+With+Spaces',
:controller => 'wiki', :web => 'web', :action => 'show', :id => 'Page With Spaces')
# assert_routing('web/show/HomePage%2Fsomething_else',
# :controller => 'wiki', :web => 'web', :action => 'show', :id => 'HomePage/something_else')
end

File diff suppressed because it is too large Load diff