class RoutingWikisTest < ActionController::IntegrationTest
def test_wikis_plural_admin_setup
- assert_routing(
- { :method => 'get', :path => "/projects/ladida/wiki/destroy" },
- { :controller => 'wikis', :action => 'destroy', :id => 'ladida' }
- )
+ ["get", "post"].each do |method|
+ assert_routing(
+ { :method => method, :path => "/projects/ladida/wiki/destroy" },
+ { :controller => 'wikis', :action => 'destroy', :id => 'ladida' }
+ )
+ end
assert_routing(
{ :method => 'post', :path => "/projects/ladida/wiki" },
{ :controller => 'wikis', :action => 'edit', :id => 'ladida' }
)
- assert_routing(
- { :method => 'post', :path => "/projects/ladida/wiki/destroy" },
- { :controller => 'wikis', :action => 'destroy', :id => 'ladida' }
- )
end
end