From 1aded31fec4a98c2521bca685166f82a8d7d66c6 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Wed, 27 Jul 2016 21:50:43 -0600 Subject: [PATCH] test_utils: remove unnecessary full paths. --- Library/Homebrew/test/test_utils.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Library/Homebrew/test/test_utils.rb b/Library/Homebrew/test/test_utils.rb index 816032804c..bf19137849 100644 --- a/Library/Homebrew/test/test_utils.rb +++ b/Library/Homebrew/test/test_utils.rb @@ -161,13 +161,13 @@ class UtilTests < Homebrew::TestCase end def test_popen_read - out = Utils.popen_read("/bin/sh", "-c", "echo success").chomp + out = Utils.popen_read("sh", "-c", "echo success").chomp assert_equal "success", out assert_predicate $?, :success? end def test_popen_read_with_block - out = Utils.popen_read("/bin/sh", "-c", "echo success") do |pipe| + out = Utils.popen_read("sh", "-c", "echo success") do |pipe| pipe.read.chomp end assert_equal "success", out @@ -175,7 +175,7 @@ class UtilTests < Homebrew::TestCase end def test_popen_write_with_block - Utils.popen_write("/usr/bin/grep", "-q", "success") do |pipe| + Utils.popen_write("grep", "-q", "success") do |pipe| pipe.write("success\n") end assert_predicate $?, :success?