aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/csvprintf.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula/csvprintf.rb')
-rw-r--r--Library/Formula/csvprintf.rb7
1 files changed, 2 insertions, 5 deletions
diff --git a/Library/Formula/csvprintf.rb b/Library/Formula/csvprintf.rb
index 930deeeb0..e04088675 100644
--- a/Library/Formula/csvprintf.rb
+++ b/Library/Formula/csvprintf.rb
@@ -13,10 +13,7 @@ class Csvprintf < Formula
end
test do
- IO.popen("#{bin}/csvprintf -i '%2$s %1$s\n'", "w+") do |pipe|
- pipe.write "Last,First\nSmith,Fred\n"
- pipe.close_write
- assert_equal "Fred Smith\n", pipe.read
- end
+ assert_equal "Fred Smith\n",
+ pipe_output("#{bin}/csvprintf -i '%2$s %1$s\n'", "Last,First\nSmith,Fred\n")
end
end