Skip to content

Commit 36552a0

Browse files
committed
Fix setup of test_new_from_buffer test.
1 parent b6aa252 commit 36552a0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/diff_test.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,8 @@ def test_new_from_buffer
7070
diff1 = Rugged::Diff.from_buffer(patch1)
7171
assert_equal diff1.patch, patch1
7272

73-
# This currently breaks
7473
repo = FixtureRepo.from_libgit2("attr")
75-
diff2 = repo.diff("605812a", nil)
74+
diff2 = repo.diff("605812a", "370fe9ec22", :context_lines => 1, :interhunk_lines => 1)
7675
patch2 = diff2.patch
7776
diff3 = Rugged::Diff.from_buffer(patch2)
7877
assert_equal diff3.patch, patch2

0 commit comments

Comments
 (0)