summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-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