mirror of
https://github.com/redmine/redmine.git
synced 2025-11-12 00:06:01 +01:00
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
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user