Skip to content

Commit 7293158

Browse files
authored
Merge pull request #1008 from libgit2/cmn/freeze-test-string
test: avoid modifying our test string
2 parents 9e3034a + 8b04c0b commit 7293158

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

test/diff_test.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1145,9 +1145,7 @@ def test_patch
11451145
\\ No newline at end of file
11461146
EOS
11471147

1148-
expected.force_encoding('binary') if expected.respond_to?(:force_encoding)
1149-
1150-
assert_equal expected, diff.patch
1148+
assert_equal expected.b, diff.patch
11511149
end
11521150

11531151
def test_patch_compact

0 commit comments

Comments
 (0)