aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/git-tracker.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula/git-tracker.rb')
-rw-r--r--Library/Formula/git-tracker.rb7
1 files changed, 2 insertions, 5 deletions
diff --git a/Library/Formula/git-tracker.rb b/Library/Formula/git-tracker.rb
index 347f82c17..27ebd78d2 100644
--- a/Library/Formula/git-tracker.rb
+++ b/Library/Formula/git-tracker.rb
@@ -12,10 +12,7 @@ class GitTracker < Formula
end
test do
- require 'open3'
- Open3.popen3("#{bin}/git-tracker", "help") do |_, stdout, _|
- install_message = /\Agit-tracker \d+(\.\d+)* is installed\.\z/
- assert install_message.match(stdout.readline.strip), "git-tracker is not installed"
- end
+ output = shell_output("#{bin}/git-tracker help")
+ assert_match /git-tracker \d+(\.\d+)* is installed\./, output
end
end