From f79f6155562dbaf7fffc6c11f95258e1dff9281c Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Wed, 16 Jul 2014 14:50:31 -0700 Subject: the_platinum_searcher: slightly shorten test. --- Library/Formula/the_platinum_searcher.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Library') 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] -- cgit v1.2.3