summaryrefslogtreecommitdiffstats
path: root/test/functional/repositories_mercurial_controller_test.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2013-05-30 07:41:17 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2013-05-30 07:41:17 +0000
commitd2192bba0290157ebf7de98cadb2d2cb6bc41428 (patch)
treeb4bcb8d23bdb6f2cd3aa2748472f5df2fe336d70 /test/functional/repositories_mercurial_controller_test.rb
parent71afcaf43bfb85b620799da5187e32ec8c370ac8 (diff)
downloadredmine-d2192bba0290157ebf7de98cadb2d2cb6bc41428.tar.gz
redmine-d2192bba0290157ebf7de98cadb2d2cb6bc41428.zip
add test of revision page title (#14138)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11908 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/repositories_mercurial_controller_test.rb')
-rw-r--r--test/functional/repositories_mercurial_controller_test.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/functional/repositories_mercurial_controller_test.rb b/test/functional/repositories_mercurial_controller_test.rb
index 071fa7930..4b3263e18 100644
--- a/test/functional/repositories_mercurial_controller_test.rb
+++ b/test/functional/repositories_mercurial_controller_test.rb
@@ -474,6 +474,22 @@ class RepositoriesMercurialControllerTest < ActionController::TestCase
end
end
+ def test_revision
+ assert_equal 0, @repository.changesets.count
+ @repository.fetch_changesets
+ @project.reload
+ assert_equal NUM_REV, @repository.changesets.count
+ ['1', '9d5b5b', '9d5b5b004199'].each do |r|
+ with_settings :default_language => "en" do
+ get :revision, :id => PRJ_ID, :rev => r
+ assert_response :success
+ assert_template 'revision'
+ assert_select 'title',
+ :text => 'Revision 1:9d5b5b004199 - eCookbook Subproject 1 - Redmine'
+ end
+ end
+ end
+
def test_empty_revision
assert_equal 0, @repository.changesets.count
@repository.fetch_changesets