aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/aamath.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula/aamath.rb')
-rw-r--r--Library/Formula/aamath.rb7
1 files changed, 2 insertions, 5 deletions
diff --git a/Library/Formula/aamath.rb b/Library/Formula/aamath.rb
index 219fef1f7..ace2b8406 100644
--- a/Library/Formula/aamath.rb
+++ b/Library/Formula/aamath.rb
@@ -19,11 +19,8 @@ class Aamath < Formula
end
test do
- IO.popen("#{bin}/aamath", "w+") do |pipe|
- pipe.write((prefix/"testcases").read)
- pipe.close_write
- assert_match /#{Regexp.escape("f(x + h) = f(x) + h f'(x)")}/, pipe.read
- end
+ s = pipe_output("#{bin}/aamath", (prefix/"testcases").read)
+ assert_match /#{Regexp.escape("f(x + h) = f(x) + h f'(x)")}/, s
end
end