test: route: simplify wikis tests
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8372 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
a84baf92e7
commit
08df9335f8
@ -19,17 +19,15 @@ require File.expand_path('../../../test_helper', __FILE__)
|
|||||||
|
|
||||||
class RoutingWikisTest < ActionController::IntegrationTest
|
class RoutingWikisTest < ActionController::IntegrationTest
|
||||||
def test_wikis_plural_admin_setup
|
def test_wikis_plural_admin_setup
|
||||||
assert_routing(
|
["get", "post"].each do |method|
|
||||||
{ :method => 'get', :path => "/projects/ladida/wiki/destroy" },
|
assert_routing(
|
||||||
{ :controller => 'wikis', :action => 'destroy', :id => 'ladida' }
|
{ :method => method, :path => "/projects/ladida/wiki/destroy" },
|
||||||
)
|
{ :controller => 'wikis', :action => 'destroy', :id => 'ladida' }
|
||||||
|
)
|
||||||
|
end
|
||||||
assert_routing(
|
assert_routing(
|
||||||
{ :method => 'post', :path => "/projects/ladida/wiki" },
|
{ :method => 'post', :path => "/projects/ladida/wiki" },
|
||||||
{ :controller => 'wikis', :action => 'edit', :id => 'ladida' }
|
{ :controller => 'wikis', :action => 'edit', :id => 'ladida' }
|
||||||
)
|
)
|
||||||
assert_routing(
|
|
||||||
{ :method => 'post', :path => "/projects/ladida/wiki/destroy" },
|
|
||||||
{ :controller => 'wikis', :action => 'destroy', :id => 'ladida' }
|
|
||||||
)
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user