add test of revision page title (#14138)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11908 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
71afcaf43b
commit
d2192bba02
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue