From d2192bba0290157ebf7de98cadb2d2cb6bc41428 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Thu, 30 May 2013 07:41:17 +0000 Subject: [PATCH] add test of revision page title (#14138) git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11908 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- .../repositories_mercurial_controller_test.rb | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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