mirror of
https://github.com/meineerde/redmine.git
synced 2026-01-09 00:51:31 +00:00
fix source indent of test/unit/lib/redmine/unified_diff_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20567 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
a8dfb6d8dd
commit
dbefefe789
@ -319,8 +319,10 @@ class Redmine::UnifiedDiffTest < ActiveSupport::TestCase
|
||||
|
||||
def test_offset_range_japanese_1
|
||||
with_settings :repositories_encodings => '' do
|
||||
diff = Redmine::UnifiedDiff.new(
|
||||
read_diff_fixture('issue-13644-1.diff'), :type => 'sbs')
|
||||
diff =
|
||||
Redmine::UnifiedDiff.new(
|
||||
read_diff_fixture('issue-13644-1.diff'), :type => 'sbs'
|
||||
)
|
||||
assert_equal 1, diff.size
|
||||
assert_equal 3, diff.first.size
|
||||
assert_equal '日本<span></span>', diff.first[1].html_line_left
|
||||
@ -330,8 +332,10 @@ class Redmine::UnifiedDiffTest < ActiveSupport::TestCase
|
||||
|
||||
def test_offset_range_japanese_2
|
||||
with_settings :repositories_encodings => '' do
|
||||
diff = Redmine::UnifiedDiff.new(
|
||||
read_diff_fixture('issue-13644-2.diff'), :type => 'sbs')
|
||||
diff =
|
||||
Redmine::UnifiedDiff.new(
|
||||
read_diff_fixture('issue-13644-2.diff'), :type => 'sbs'
|
||||
)
|
||||
assert_equal 1, diff.size
|
||||
assert_equal 3, diff.first.size
|
||||
assert_equal '<span></span>日本', diff.first[1].html_line_left
|
||||
@ -342,8 +346,10 @@ class Redmine::UnifiedDiffTest < ActiveSupport::TestCase
|
||||
def test_offset_range_japanese_3
|
||||
# UTF-8 The 1st byte differs.
|
||||
with_settings :repositories_encodings => '' do
|
||||
diff = Redmine::UnifiedDiff.new(
|
||||
read_diff_fixture('issue-13644-3.diff'), :type => 'sbs')
|
||||
diff =
|
||||
Redmine::UnifiedDiff.new(
|
||||
read_diff_fixture('issue-13644-3.diff'), :type => 'sbs'
|
||||
)
|
||||
assert_equal 1, diff.size
|
||||
assert_equal 3, diff.first.size
|
||||
assert_equal '日本<span>記</span>', diff.first[1].html_line_left
|
||||
@ -354,8 +360,10 @@ class Redmine::UnifiedDiffTest < ActiveSupport::TestCase
|
||||
def test_offset_range_japanese_4
|
||||
# UTF-8 The 2nd byte differs.
|
||||
with_settings :repositories_encodings => '' do
|
||||
diff = Redmine::UnifiedDiff.new(
|
||||
read_diff_fixture('issue-13644-4.diff'), :type => 'sbs')
|
||||
diff =
|
||||
Redmine::UnifiedDiff.new(
|
||||
read_diff_fixture('issue-13644-4.diff'), :type => 'sbs'
|
||||
)
|
||||
assert_equal 1, diff.size
|
||||
assert_equal 3, diff.first.size
|
||||
assert_equal '日本<span>記</span>', diff.first[1].html_line_left
|
||||
@ -366,8 +374,10 @@ class Redmine::UnifiedDiffTest < ActiveSupport::TestCase
|
||||
def test_offset_range_japanese_5
|
||||
# UTF-8 The 2nd byte differs.
|
||||
with_settings :repositories_encodings => '' do
|
||||
diff = Redmine::UnifiedDiff.new(
|
||||
read_diff_fixture('issue-13644-5.diff'), :type => 'sbs')
|
||||
diff =
|
||||
Redmine::UnifiedDiff.new(
|
||||
read_diff_fixture('issue-13644-5.diff'), :type => 'sbs'
|
||||
)
|
||||
assert_equal 1, diff.size
|
||||
assert_equal 3, diff.first.size
|
||||
assert_equal '日本<span>記</span>ok', diff.first[1].html_line_left
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user