summaryrefslogtreecommitdiffstats
path: root/test/functional/repositories_git_controller_test.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2012-10-24 09:24:30 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2012-10-24 09:24:30 +0000
commitc4ce048970c26140af98472fd0487e789d85d65d (patch)
tree77c36941c83a194d4ddbba631ca7c8395abca30f /test/functional/repositories_git_controller_test.rb
parent2beae77c587128445955f84a262d6cd791add0cf (diff)
downloadredmine-c4ce048970c26140af98472fd0487e789d85d65d.tar.gz
redmine-c4ce048970c26140af98472fd0487e789d85d65d.zip
fix "Page not found" on OK button in SCM "View all revisions" page (#12196)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10709 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/repositories_git_controller_test.rb')
-rw-r--r--test/functional/repositories_git_controller_test.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/functional/repositories_git_controller_test.rb b/test/functional/repositories_git_controller_test.rb
index e7337b2e6..5dedf6e86 100644
--- a/test/functional/repositories_git_controller_test.rb
+++ b/test/functional/repositories_git_controller_test.rb
@@ -542,6 +542,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