diff options
| author | Mike McQuaid | 2016-07-27 21:50:43 -0600 |
|---|---|---|
| committer | Mike McQuaid | 2016-07-29 21:21:02 -0600 |
| commit | 1aded31fec4a98c2521bca685166f82a8d7d66c6 (patch) | |
| tree | bf734bc12b528c81e009706413f30d805586d519 /Library | |
| parent | b999edb3448793529aea8b29c01b3851bbc3b3eb (diff) | |
| download | brew-1aded31fec4a98c2521bca685166f82a8d7d66c6.tar.bz2 | |
test_utils: remove unnecessary full paths.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/test/test_utils.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Library/Homebrew/test/test_utils.rb b/Library/Homebrew/test/test_utils.rb index 816032804..bf1913784 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? |
