summaryrefslogtreecommitdiffstats
path: root/test/integration
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-12-26 07:17:12 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-12-26 07:17:12 +0000
commit08df9335f8082dde51808a245f6ad0dc7eceae60 (patch)
tree051d24e8936b3b0927a14968c9b167af75ec7259 /test/integration
parenta84baf92e7516d3c904c08e932e1626c632fc7dd (diff)
downloadredmine-08df9335f8082dde51808a245f6ad0dc7eceae60.tar.gz
redmine-08df9335f8082dde51808a245f6ad0dc7eceae60.zip
test: route: simplify wikis tests
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8372 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/integration')
-rw-r--r--test/integration/routing/wikis_test.rb14
1 files changed, 6 insertions, 8 deletions
diff --git a/test/integration/routing/wikis_test.rb b/test/integration/routing/wikis_test.rb
index 2b0899dc1..c37778328 100644
--- a/test/integration/routing/wikis_test.rb
+++ b/test/integration/routing/wikis_test.rb
@@ -19,17 +19,15 @@ require File.expand_path('../../../test_helper', __FILE__)
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