aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Library/Formula/the_platinum_searcher.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/Library/Formula/the_platinum_searcher.rb b/Library/Formula/the_platinum_searcher.rb
index 2eb04884d..6736ac23c 100644
--- a/Library/Formula/the_platinum_searcher.rb
+++ b/Library/Formula/the_platinum_searcher.rb
@@ -32,8 +32,7 @@ class ThePlatinumSearcher < Formula
test do
path = testpath/"hello_world.txt"
- data = "Hello World!"
- path.open("wb") { |f| f.write data}
+ path.write "Hello World!"
lines = `#{bin}/pt 'Hello World!' #{path}`.strip.split(":")
assert_equal "Hello World!", lines[2]