diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2012-04-02 05:09:36 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2012-04-02 05:09:36 +0000 |
commit | f0936aaf18ee508c59a0539e3e3e8f930e112d7f (patch) | |
tree | 8fadac82a00b168fb06408f5a89fbc99e51d6435 /test/integration | |
parent | 3db1fa6b839b8cf98bb83c879b3723f922a1335c (diff) | |
download | redmine-f0936aaf18ee508c59a0539e3e3e8f930e112d7f.tar.gz redmine-f0936aaf18ee508c59a0539e3e3e8f930e112d7f.zip |
scm: fix revisions page "OK" button always returns 404 error (#10567)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9299 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/integration')
-rw-r--r-- | test/integration/routing/repositories_test.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/integration/routing/repositories_test.rb b/test/integration/routing/repositories_test.rb index 14c835f37..60a1d408b 100644 --- a/test/integration/routing/repositories_test.rb +++ b/test/integration/routing/repositories_test.rb @@ -300,6 +300,11 @@ class RoutingRepositoriesTest < ActionController::IntegrationTest { :controller => 'repositories', :action => 'changes', :id => 'redmine', :path => @path_hash[:param] } ) + assert_routing( + { :method => 'get', + :path => "/projects/redmine/repository/revision" }, + { :controller => 'repositories', :action => 'revision', :id => 'redmine' } + ) end def test_repositories_non_revisions_path_with_repository_id @@ -339,6 +344,11 @@ class RoutingRepositoriesTest < ActionController::IntegrationTest { :controller => 'repositories', :action => 'changes', :id => 'redmine', :repository_id => 'foo', :path => @path_hash[:param] } ) + assert_routing( + { :method => 'get', + :path => "/projects/redmine/repository/foo/revision" }, + { :controller => 'repositories', :action => 'revision', :id => 'redmine', :repository_id => 'foo'} + ) end def test_repositories_related_issues |