test: route: move versions test in projects test to routing/versions_test.rb

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8351 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2011-12-24 13:03:14 +00:00
parent cf2ad74ec7
commit 4b8ceb51e2
2 changed files with 4 additions and 4 deletions

View File

@ -20,6 +20,10 @@ require File.expand_path('../../../test_helper', __FILE__)
class RoutingVersionsTest < ActionController::IntegrationTest
def test_versions
# /projects/foo/versions is /projects/foo/roadmap
assert_routing(
{ :method => 'get', :path => "/projects/33/roadmap" },
{ :controller => 'versions', :action => 'index', :project_id => '33' }
)
assert_routing(
{ :method => 'get', :path => "/projects/foo/versions.xml" },
{ :controller => 'versions', :action => 'index',

View File

@ -338,10 +338,6 @@ class RoutingTest < ActionController::IntegrationTest
{ :controller => 'projects', :action => 'settings', :id => '4223',
:tab => 'members' }
)
assert_routing(
{ :method => 'get', :path => "/projects/33/roadmap" },
{ :controller => 'versions', :action => 'index', :project_id => '33' }
)
assert_routing(
{ :method => 'post', :path => "/projects" },
{ :controller => 'projects', :action => 'create' }