tests: update prune --verbose test

Closes #15.

Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
This commit is contained in:
Martin Afanasjew 2016-04-02 18:16:03 +02:00
parent f2245adaa7
commit 7771f3af81

View File

@ -694,7 +694,9 @@ class IntegrationCommandTests < Homebrew::TestCase
assert (share/"notpruneable").directory?
refute (share/"pruneable_symlink").symlink?
assert_equal "Nothing pruned",
# Inexact match because only if ~/Applications exists, will this output one
# more line with contents `No apps unlinked from /Users/<user/Applications`.
assert_match "Nothing pruned\nNo apps unlinked from /Applications",
cmd("prune", "--verbose")
ensure
share.rmtree