Commit 400781c476eb0c2c4b07b57ebcfd7715855cdcfe

Authored by Antonio Terceiro
1 parent 41c29b09

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,7 +143,7 @@ class RoutingTest < ActionController::IntegrationTest
143 end 143 end
144 144
145 def test_content_view_with_dash 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 end 147 end
148 148
149 def test_content_view_with_underscore 149 def test_content_view_with_underscore