##// END OF EJS Templates
test: route: simplify wikis tests...
Toshi MARUYAMA -
r8252:08df9335f808
parent child
Show More
@@ -19,17 +19,15 require File.expand_path('../../../test_helper', __FILE__)
19
19
20 class RoutingWikisTest < ActionController::IntegrationTest
20 class RoutingWikisTest < ActionController::IntegrationTest
21 def test_wikis_plural_admin_setup
21 def test_wikis_plural_admin_setup
22 assert_routing(
22 ["get", "post"].each do |method|
23 { :method => 'get', :path => "/projects/ladida/wiki/destroy" },
23 assert_routing(
24 { :controller => 'wikis', :action => 'destroy', :id => 'ladida' }
24 { :method => method, :path => "/projects/ladida/wiki/destroy" },
25 )
25 { :controller => 'wikis', :action => 'destroy', :id => 'ladida' }
26 )
27 end
26 assert_routing(
28 assert_routing(
27 { :method => 'post', :path => "/projects/ladida/wiki" },
29 { :method => 'post', :path => "/projects/ladida/wiki" },
28 { :controller => 'wikis', :action => 'edit', :id => 'ladida' }
30 { :controller => 'wikis', :action => 'edit', :id => 'ladida' }
29 )
31 )
30 assert_routing(
31 { :method => 'post', :path => "/projects/ladida/wiki/destroy" },
32 { :controller => 'wikis', :action => 'destroy', :id => 'ladida' }
33 )
34 end
32 end
35 end
33 end
General Comments 0
You need to be logged in to leave comments. Login now