From 189bc0f7c8f629ace64333e3c4c1a26da5e4b799 2012-01-28 06:51:08 From: Toshi MARUYAMA Date: 2012-01-28 06:51:08 Subject: [PATCH] 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 --- diff --git a/test/integration/routing/repositories_test.rb b/test/integration/routing/repositories_test.rb index d2573eb..5b2ccbc 100644 --- a/test/integration/routing/repositories_test.rb +++ b/test/integration/routing/repositories_test.rb @@ -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" },