aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/sendemail.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Formula/sendemail.rb b/Library/Formula/sendemail.rb
index c1469f05f..f69480942 100644
--- a/Library/Formula/sendemail.rb
+++ b/Library/Formula/sendemail.rb
@@ -9,7 +9,7 @@ class Sendemail < Formula
bin.install 'sendEmail'
end
- def test
- system "#{bin}/sendEmail | cat"
+ test do
+ `#{bin}/sendemail`.strip =~ /sendemail-#{Regexp.escape(version)}/
end
end