diff options
| author | Mike McQuaid | 2017-06-10 20:12:55 +0300 |
|---|---|---|
| committer | Mike McQuaid | 2017-06-12 09:11:42 +0100 |
| commit | 021cef4b2bfebe330fa55e9dcc904a08932bad94 (patch) | |
| tree | 835ed01ef034c83d219d8a5c34ed10b1d47f882f /Library/Homebrew/test/utils | |
| parent | c21abf0e3ab89e0218a26905fe44725e19cbf675 (diff) | |
| download | brew-021cef4b2bfebe330fa55e9dcc904a08932bad94.tar.bz2 | |
Autocorrect Rubocop Style/SpecialGlobalVars.
Diffstat (limited to 'Library/Homebrew/test/utils')
| -rw-r--r-- | Library/Homebrew/test/utils/popen_spec.rb | 6 |
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 |
