Skip to content

Commit

Permalink
Supress unneeded test output (#570)
Browse files Browse the repository at this point in the history
Signed-off-by: James Couball <jcouball@yahoo.com>
  • Loading branch information
jcouball committed Apr 13, 2022
1 parent 19dfe5e commit 292087e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion tests/units/test_git_dir.rb
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
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

0 comments on commit 292087e

Please sign in to comment.