summaryrefslogtreecommitdiffstats
path: root/test/integration/routing/files_test.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-12-24 04:11:32 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-12-24 04:11:32 +0000
commit1a626bcacd51bb51aad752c1357a89ba9ed5fdf3 (patch)
treeeb3537fee62d9bac2ff1855e8efd0a746ca7afe0 /test/integration/routing/files_test.rb
parentb6d6f5e38218f128781e922e67572cdf252ade23 (diff)
downloadredmine-1a626bcacd51bb51aad752c1357a89ba9ed5fdf3.tar.gz
redmine-1a626bcacd51bb51aad752c1357a89ba9ed5fdf3.zip
test: route: move files test in project to new file
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8338 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/integration/routing/files_test.rb')
-rw-r--r--test/integration/routing/files_test.rb35
1 files changed, 35 insertions, 0 deletions
diff --git a/test/integration/routing/files_test.rb b/test/integration/routing/files_test.rb
new file mode 100644
index 000000000..674076c2d
--- /dev/null
+++ b/test/integration/routing/files_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 RoutingFilesTest < ActionController::IntegrationTest
+ def test_files
+ assert_routing(
+ { :method => 'get', :path => "/projects/33/files" },
+ { :controller => 'files', :action => 'index', :project_id => '33' }
+ )
+ assert_routing(
+ { :method => 'get', :path => "/projects/33/files/new" },
+ { :controller => 'files', :action => 'new', :project_id => '33' }
+ )
+ assert_routing(
+ { :method => 'post', :path => "/projects/33/files" },
+ { :controller => 'files', :action => 'create', :project_id => '33' }
+ )
+ end
+end