scm: mercurial: add instance value flag of whether "hg diff -c" supports at tests (#7518).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4853 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -34,6 +34,7 @@ class RepositoriesMercurialControllerTest < ActionController::TestCase
|
||||
User.current = nil
|
||||
@repository = Repository::Mercurial.create(:project => Project.find(3), :url => REPOSITORY_PATH)
|
||||
assert @repository
|
||||
@diff_c_support = @repository.scm.class.client_version_above?([1, 2])
|
||||
end
|
||||
|
||||
if File.directory?(REPOSITORY_PATH)
|
||||
@@ -137,7 +138,7 @@ class RepositoriesMercurialControllerTest < ActionController::TestCase
|
||||
assert_response :success
|
||||
assert_template 'diff'
|
||||
|
||||
if @repository.scm.class.client_version_above?([1, 2])
|
||||
if @diff_c_support
|
||||
# Line 22 removed
|
||||
assert_tag :tag => 'th',
|
||||
:content => '22',
|
||||
|
||||
Reference in New Issue
Block a user