aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/utils
diff options
context:
space:
mode:
authorMike McQuaid2017-06-12 16:16:37 +0100
committerGitHub2017-06-12 16:16:37 +0100
commit22c431d221ca25413f3b63374d75173bedbe9e66 (patch)
treef362e3ec0a69f528234a7833de347e9c63b98080 /Library/Homebrew/test/utils
parentaa364fbf155ba4c795ebef51abee1212801c4771 (diff)
parent021cef4b2bfebe330fa55e9dcc904a08932bad94 (diff)
downloadbrew-22c431d221ca25413f3b63374d75173bedbe9e66.tar.bz2
Merge pull request #2767 from MikeMcQuaid/rubocop-no-special-global-vars
rubocop: don’t allow special global variables.
Diffstat (limited to 'Library/Homebrew/test/utils')
-rw-r--r--Library/Homebrew/test/utils/popen_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/Library/Homebrew/test/utils/popen_spec.rb b/Library/Homebrew/test/utils/popen_spec.rb
index e3704a876..63bbc7b18 100644
--- a/Library/Homebrew/test/utils/popen_spec.rb
+++ b/Library/Homebrew/test/utils/popen_spec.rb
@@ -4,7 +4,7 @@ describe Utils do
describe "::popen_read" do
it "reads the standard output of a given command" do
expect(subject.popen_read("sh", "-c", "echo success").chomp).to eq("success")
- expect($?).to be_a_success
+ expect($CHILD_STATUS).to be_a_success
end
it "can be given a block to manually read from the pipe" do
@@ -13,7 +13,7 @@ describe Utils do
pipe.read.chomp
end,
).to eq("success")
- expect($?).to be_a_success
+ expect($CHILD_STATUS).to be_a_success
end
end
@@ -22,7 +22,7 @@ describe Utils do
subject.popen_write("grep", "-q", "success") do |pipe|
pipe.write("success\n")
end
- expect($?).to be_a_success
+ expect($CHILD_STATUS).to be_a_success
end
end
end