@@ -517,11 +517,19 class RoutingTest < ActionController::IntegrationTest | |||
|
517 | 517 | should_route :delete, "/projects/22/wiki/ladida", :controller => 'wiki', :action => 'destroy', :project_id => '22', :id => 'ladida' |
|
518 | 518 | end |
|
519 | 519 | |
|
520 |
|
|
|
521 | should_route :get, "/projects/ladida/wiki/destroy", :controller => 'wikis', :action => 'destroy', :id => 'ladida' | |
|
522 | ||
|
523 |
|
|
|
524 | should_route :post, "/projects/ladida/wiki/destroy", :controller => 'wikis', :action => 'destroy', :id => 'ladida' | |
|
520 | def test_wikis_plural_admin_setup | |
|
521 | assert_routing( | |
|
522 | { :method => 'get', :path => "/projects/ladida/wiki/destroy" }, | |
|
523 | { :controller => 'wikis', :action => 'destroy', :id => 'ladida' } | |
|
524 | ) | |
|
525 | assert_routing( | |
|
526 | { :method => 'post', :path => "/projects/ladida/wiki" }, | |
|
527 | { :controller => 'wikis', :action => 'edit', :id => 'ladida' } | |
|
528 | ) | |
|
529 | assert_routing( | |
|
530 | { :method => 'post', :path => "/projects/ladida/wiki/destroy" }, | |
|
531 | { :controller => 'wikis', :action => 'destroy', :id => 'ladida' } | |
|
532 | ) | |
|
525 | 533 | end |
|
526 | 534 | |
|
527 | 535 | def test_administration_panel |
General Comments 0
You need to be logged in to leave comments.
Login now