test: route: repositories: split tests whether 'show' action or not

On Rails3, 'show' action has some problems.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8715 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2012-01-28 06:51:08 +00:00
parent 24d73d4644
commit 189bc0f7c8
1 changed files with 8 additions and 2 deletions

View File

@ -59,12 +59,15 @@ class RoutingRepositoriesTest < ActionController::IntegrationTest
end
end
def test_repositories
def test_repositories_show
assert_routing(
{ :method => 'get',
:path => "/projects/redmine/repository" },
{ :controller => 'repositories', :action => 'show', :id => 'redmine' }
)
end
def test_repositories
assert_routing(
{ :method => 'get',
:path => "/projects/redmine/repository/statistics" },
@ -77,12 +80,15 @@ class RoutingRepositoriesTest < ActionController::IntegrationTest
)
end
def test_repositories_with_repository_id
def test_repositories_show_with_repository_id
assert_routing(
{ :method => 'get',
:path => "/projects/redmine/repository/foo" },
{ :controller => 'repositories', :action => 'show', :id => 'redmine', :repository_id => 'foo' }
)
end
def test_repositories_with_repository_id
assert_routing(
{ :method => 'get',
:path => "/projects/redmine/repository/foo/statistics" },