mirror of
https://github.com/redmine/redmine.git
synced 2026-05-07 21:46:35 +02:00
Merged r10709 from trunk to 2.1-stable (#12196)
fix "Page not found" on OK button in SCM "View all revisions" page. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/2.1-stable@10710 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -532,6 +532,21 @@ class RepositoriesGitControllerTest < ActionController::TestCase
|
||||
end
|
||||
end
|
||||
|
||||
def test_revisions
|
||||
assert_equal 0, @repository.changesets.count
|
||||
@repository.fetch_changesets
|
||||
@project.reload
|
||||
assert_equal NUM_REV, @repository.changesets.count
|
||||
get :revisions, :id => PRJ_ID
|
||||
assert_response :success
|
||||
assert_template 'revisions'
|
||||
assert_tag :tag => 'form',
|
||||
:attributes => {
|
||||
:method => 'get',
|
||||
:action => '/projects/subproject1/repository/revision'
|
||||
}
|
||||
end
|
||||
|
||||
def test_revision
|
||||
assert_equal 0, @repository.changesets.count
|
||||
@repository.fetch_changesets
|
||||
|
||||
Reference in New Issue
Block a user