aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike McQuaid2014-07-16 14:50:31 -0700
committerMike McQuaid2014-07-16 14:50:31 -0700
commitf79f6155562dbaf7fffc6c11f95258e1dff9281c (patch)
tree3005108dc6088a5ecdeadabbabceec76bdaeff11
parente6e7c1071628aae0852354164f501d1c410cef71 (diff)
downloadhomebrew-f79f6155562dbaf7fffc6c11f95258e1dff9281c.tar.bz2
the_platinum_searcher: slightly shorten test.
-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]