Skip to content

Commit 292087e

Browse files
authored
Supress unneeded test output (#570)
Signed-off-by: James Couball <jcouball@yahoo.com>
1 parent 19dfe5e commit 292087e

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

tests/units/test_git_dir.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def test_git_diff_to_a
8484
Dir.chdir(work_tree) do
8585
`git init`
8686
`git commit --allow-empty -m 'init'`
87-
`git worktree add child`
87+
`git worktree add --quiet child`
8888
Dir.chdir('child') do
8989
result = Git.open('.').diff.to_a
9090
assert_equal([], result)

tests/units/test_lib.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,6 @@ def test_grep
289289
end
290290

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

0 commit comments

Comments
 (0)