diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2012-01-28 06:51:08 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2012-01-28 06:51:08 +0000 |
commit | 189bc0f7c8f629ace64333e3c4c1a26da5e4b799 (patch) | |
tree | 5d8d17a44343879040da675f7ea658fe606139ed /test | |
parent | 24d73d4644650cb087f6d3a82f9f0536b65aad2a (diff) | |
download | redmine-189bc0f7c8f629ace64333e3c4c1a26da5e4b799.tar.gz redmine-189bc0f7c8f629ace64333e3c4c1a26da5e4b799.zip |
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
Diffstat (limited to 'test')
-rw-r--r-- | test/integration/routing/repositories_test.rb | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/test/integration/routing/repositories_test.rb b/test/integration/routing/repositories_test.rb index d2573eb36..5b2ccbcac 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" }, |