Commit 68ba56a1594193434d475d34d9bf211391a4da80
1 parent
6de2954f
Exists in
master
and in
29 other branches
Fixing routing tests
Showing
1 changed file
with
3 additions
and
3 deletions
Show diff stats
test/integration/routing_test.rb
| ... | ... | @@ -213,13 +213,13 @@ class RoutingTest < ActionController::IntegrationTest |
| 213 | 213 | |
| 214 | 214 | # online documentation routes |
| 215 | 215 | def test_doc_routing_with_section_and_topic |
| 216 | - assert_routing('/doc/admin/settings', :controller => 'doc', :action => 'view', :section => 'admin', :id => 'settings') | |
| 216 | + assert_routing('/doc/admin/settings', :controller => 'doc', :action => 'topic', :section => 'admin', :topic => 'settings') | |
| 217 | 217 | end |
| 218 | 218 | def test_doc_routing_with_section_only |
| 219 | - assert_routing('/doc/admin', :controller => 'doc', :action => 'view', :section => 'admin', :id => 'index') | |
| 219 | + assert_routing('/doc/admin', :controller => 'doc', :action => 'section', :section => 'admin') | |
| 220 | 220 | end |
| 221 | 221 | def test_doc_routing_root |
| 222 | - assert_routing('/doc', :controller => 'doc', :action => 'view', :section => nil, :id => 'index') | |
| 222 | + assert_routing('/doc', :controller => 'doc', :action => 'index') | |
| 223 | 223 | end |
| 224 | 224 | |
| 225 | 225 | end | ... | ... |