Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suppress unneeded test output #570

Merged
merged 2 commits into from Apr 13, 2022
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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