test-bot: fix ruby_has_encoding call regression

This commit is contained in:
Andrew Janke 2016-07-05 10:50:35 -04:00
parent f518f57bd8
commit 61ffa47fd9

View File

@ -177,7 +177,7 @@ module Homebrew
verbose = ARGV.verbose?
# Step may produce arbitrary output and we read it bytewise, so must
# buffer it as binary and convert to UTF-8 once complete
output = Homebrew.ruby_has_encoding? ? "".encode!("BINARY") : ""
output = ruby_has_encoding? ? "".encode!("BINARY") : ""
working_dir = Pathname.new(@command.first == "git" ? @repository : Dir.pwd)
read, write = IO.pipe