From 2d7b57809d6dd22ba833a4ddeb99e70d5ff8a477 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Sun, 25 Dec 2011 10:18:35 +0000 Subject: test: route: move wikis test to new file git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8363 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/integration/routing/wikis_test.rb | 35 ++++++++++++++++++++++++++++++++++ test/integration/routing_test.rb | 35 ---------------------------------- 2 files changed, 35 insertions(+), 35 deletions(-) create mode 100644 test/integration/routing/wikis_test.rb delete mode 100644 test/integration/routing_test.rb (limited to 'test/integration') diff --git a/test/integration/routing/wikis_test.rb b/test/integration/routing/wikis_test.rb new file mode 100644 index 000000000..2b0899dc1 --- /dev/null +++ b/test/integration/routing/wikis_test.rb @@ -0,0 +1,35 @@ +# Redmine - project management software +# Copyright (C) 2006-2011 Jean-Philippe Lang +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +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' } + ) + 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 diff --git a/test/integration/routing_test.rb b/test/integration/routing_test.rb deleted file mode 100644 index bdd6a84bf..000000000 --- a/test/integration/routing_test.rb +++ /dev/null @@ -1,35 +0,0 @@ -# Redmine - project management software -# Copyright (C) 2006-2011 Jean-Philippe Lang -# -# This program is free software; you can redistribute it and/or -# modify it under the terms of the GNU General Public License -# as published by the Free Software Foundation; either version 2 -# of the License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - -require File.expand_path('../../test_helper', __FILE__) - -class RoutingTest < ActionController::IntegrationTest - def test_wikis_plural_admin_setup - assert_routing( - { :method => 'get', :path => "/projects/ladida/wiki/destroy" }, - { :controller => 'wikis', :action => 'destroy', :id => 'ladida' } - ) - 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 -- cgit v1.2.3