mirror of
https://github.com/redmine/redmine.git
synced 2025-11-08 06:15:59 +01:00
fix source indent of MercurialAdapterTest
git-svn-id: http://svn.redmine.org/redmine/trunk@20072 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -36,12 +36,14 @@ class MercurialAdapterTest < ActiveSupport::TestCase
|
|||||||
assert_equal true, adapter_class.client_available
|
assert_equal true, adapter_class.client_available
|
||||||
assert_equal true, adapter_class.client_version_above?([0, 9, 5])
|
assert_equal true, adapter_class.client_version_above?([0, 9, 5])
|
||||||
|
|
||||||
@adapter = Redmine::Scm::Adapters::MercurialAdapter.new(
|
@adapter =
|
||||||
|
Redmine::Scm::Adapters::MercurialAdapter.new(
|
||||||
REPOSITORY_PATH,
|
REPOSITORY_PATH,
|
||||||
nil,
|
nil,
|
||||||
nil,
|
nil,
|
||||||
nil,
|
nil,
|
||||||
'ISO-8859-1')
|
'ISO-8859-1'
|
||||||
|
)
|
||||||
@diff_c_support = true
|
@diff_c_support = true
|
||||||
@char_1 = 'Ü'
|
@char_1 = 'Ü'
|
||||||
@tag_char_1 = 'tag-Ü-00'
|
@tag_char_1 = 'tag-Ü-00'
|
||||||
@@ -332,7 +334,8 @@ class MercurialAdapterTest < ActiveSupport::TestCase
|
|||||||
end
|
end
|
||||||
|
|
||||||
def test_tagmap
|
def test_tagmap
|
||||||
tm = {
|
tm =
|
||||||
|
{
|
||||||
'double"quote"tag' => 'cf5f7c556f5a643e1ec7cb01775be539f64eeefb',
|
'double"quote"tag' => 'cf5f7c556f5a643e1ec7cb01775be539f64eeefb',
|
||||||
@tag_char_1 => 'adf805632193500ad3b615cd04f58f9b0769f576',
|
@tag_char_1 => 'adf805632193500ad3b615cd04f58f9b0769f576',
|
||||||
'tag_test.00' => '6987191f453a5f6557018d522feea2c450d5588d',
|
'tag_test.00' => '6987191f453a5f6557018d522feea2c450d5588d',
|
||||||
@@ -395,7 +398,8 @@ class MercurialAdapterTest < ActiveSupport::TestCase
|
|||||||
end
|
end
|
||||||
|
|
||||||
def test_branchmap
|
def test_branchmap
|
||||||
bm = {
|
bm =
|
||||||
|
{
|
||||||
'double"quote"branch' => '04aed9840e9266e535f5f20f7e42c9f9f84f9cf4',
|
'double"quote"branch' => '04aed9840e9266e535f5f20f7e42c9f9f84f9cf4',
|
||||||
'issue-23055-ctrl-char' => '3e998343166a1b8273973bcd46dd2bad74344d74',
|
'issue-23055-ctrl-char' => '3e998343166a1b8273973bcd46dd2bad74344d74',
|
||||||
'default' => '31eeee7395c8c78e66dd54c50addd078d10b2355',
|
'default' => '31eeee7395c8c78e66dd54c50addd078d10b2355',
|
||||||
@@ -469,11 +473,13 @@ class MercurialAdapterTest < ActiveSupport::TestCase
|
|||||||
end
|
end
|
||||||
|
|
||||||
def test_path_encoding_default_utf8
|
def test_path_encoding_default_utf8
|
||||||
adpt1 = Redmine::Scm::Adapters::MercurialAdapter.new(
|
adpt1 =
|
||||||
|
Redmine::Scm::Adapters::MercurialAdapter.new(
|
||||||
REPOSITORY_PATH
|
REPOSITORY_PATH
|
||||||
)
|
)
|
||||||
assert_equal "UTF-8", adpt1.path_encoding
|
assert_equal "UTF-8", adpt1.path_encoding
|
||||||
adpt2 = Redmine::Scm::Adapters::MercurialAdapter.new(
|
adpt2 =
|
||||||
|
Redmine::Scm::Adapters::MercurialAdapter.new(
|
||||||
REPOSITORY_PATH,
|
REPOSITORY_PATH,
|
||||||
nil,
|
nil,
|
||||||
nil,
|
nil,
|
||||||
|
|||||||
Reference in New Issue
Block a user