Commit 400781c476eb0c2c4b07b57ebcfd7715855cdcfe
1 parent
41c29b09
Exists in
master
and in
29 other branches
Fix a routing test
On Rails 3, *page will not expand to an array. If there is something in that URL part, it will expand to a string (e.g. params[:page] will be "foo/bar"), otherwise it won't expand at all (i.e. params[:page] will be nil).
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
test/integration/routing_test.rb
... | ... | @@ -143,7 +143,7 @@ class RoutingTest < ActionController::IntegrationTest |
143 | 143 | end |
144 | 144 | |
145 | 145 | def test_content_view_with_dash |
146 | - assert_routing('/ze-withdash', :controller => 'content_viewer', :action => 'view_page', :profile => 'ze-withdash', :page => []) | |
146 | + assert_routing('/ze-withdash', :controller => 'content_viewer', :action => 'view_page', :profile => 'ze-withdash') | |
147 | 147 | end |
148 | 148 | |
149 | 149 | def test_content_view_with_underscore | ... | ... |