diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2013-05-30 07:41:17 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2013-05-30 07:41:17 +0000 |
commit | d2192bba0290157ebf7de98cadb2d2cb6bc41428 (patch) | |
tree | b4bcb8d23bdb6f2cd3aa2748472f5df2fe336d70 /test/functional/repositories_mercurial_controller_test.rb | |
parent | 71afcaf43bfb85b620799da5187e32ec8c370ac8 (diff) | |
download | redmine-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.rb | 16 |
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 |