##// END OF EJS Templates
test: replace "should_route" of "wikis (plural, admin setup)" to "assert_routing" at integration/routing_test.rb...
Toshi MARUYAMA -
r8096:8ac56d13d720
parent child
Show More
@@ -517,11 +517,19 class RoutingTest < ActionController::IntegrationTest
517 should_route :delete, "/projects/22/wiki/ladida", :controller => 'wiki', :action => 'destroy', :project_id => '22', :id => 'ladida'
517 should_route :delete, "/projects/22/wiki/ladida", :controller => 'wiki', :action => 'destroy', :project_id => '22', :id => 'ladida'
518 end
518 end
519
519
520 context "wikis (plural, admin setup)" do
520 def test_wikis_plural_admin_setup
521 should_route :get, "/projects/ladida/wiki/destroy", :controller => 'wikis', :action => 'destroy', :id => 'ladida'
521 assert_routing(
522
522 { :method => 'get', :path => "/projects/ladida/wiki/destroy" },
523 should_route :post, "/projects/ladida/wiki", :controller => 'wikis', :action => 'edit', :id => 'ladida'
523 { :controller => 'wikis', :action => 'destroy', :id => 'ladida' }
524 should_route :post, "/projects/ladida/wiki/destroy", :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 end
533 end
526
534
527 def test_administration_panel
535 def test_administration_panel
General Comments 0
You need to be logged in to leave comments. Login now