Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/units/test_git_dir.rb
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def test_git_diff_to_a
Dir.chdir(work_tree) do
`git init`
`git commit --allow-empty -m 'init'`
`git worktree add child`
`git worktree add --quiet child`
Dir.chdir('child') do
result = Git.open('.').diff.to_a
assert_equal([], result)
Expand Down
1 change: 0 additions & 1 deletion tests/units/test_lib.rb
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,6 @@ def test_grep
end

def test_show
puts @lib.show
assert_match(/^commit 46abbf07e3c564c723c7c039a43ab3a39e5d02dd.+\+Grep regex doesn't like this:4342: because it is bad\n$/m, @lib.show)
assert(/^commit 935badc874edd62a8629aaf103418092c73f0a56.+\+nothing!$/m.match(@lib.show('gitsearch1')))
assert(/^hello.+nothing!$/m.match(@lib.show('gitsearch1', 'scott/text.txt')))
Expand Down