##// 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 20 class RoutingWikisTest < ActionController::IntegrationTest
21 21 def test_wikis_plural_admin_setup
22 ["get", "post"].each do |method|
22 23 assert_routing(
23 { :method => 'get', :path => "/projects/ladida/wiki/destroy" },
24 { :method => method, :path => "/projects/ladida/wiki/destroy" },
24 25 { :controller => 'wikis', :action => 'destroy', :id => 'ladida' }
25 26 )
27 end
26 28 assert_routing(
27 29 { :method => 'post', :path => "/projects/ladida/wiki" },
28 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 32 end
35 33 end
General Comments 0
You need to be logged in to leave comments. Login now