aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/git-tracker.rb7
1 files changed, 5 insertions, 2 deletions
diff --git a/Library/Formula/git-tracker.rb b/Library/Formula/git-tracker.rb
index c642284dd..604ec83e9 100644
--- a/Library/Formula/git-tracker.rb
+++ b/Library/Formula/git-tracker.rb
@@ -11,7 +11,10 @@ class GitTracker < Formula
rake 'standalone:install', "prefix=#{prefix}"
end
- def test
- `#{bin}/git-tracker test-command`.chomp == 'git-tracker is here. How are you?'
+ test do
+ require 'open3'
+ Open3.popen3("#{bin}/git-tracker", "test-command") do |_, stdout, _|
+ "git-tracker is here. How are you?" == stdout.read.strip
+ end
end
end