aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authormansimarkaur2017-06-23 03:27:21 +0530
committermansimarkaur2017-06-23 03:40:03 +0530
commitbfd19f91708abf0564a482377c5107b30b934437 (patch)
tree9afabf339111dc95552ac4ba2d69a3210d4c03ca /Library
parent5fed1f5cbeca11d54fd69070c2e628e165e8d80d (diff)
downloadbrew-bfd19f91708abf0564a482377c5107b30b934437.tar.bz2
Stubbed nil:NilClass
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/test/language/node_spec.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/Library/Homebrew/test/language/node_spec.rb b/Library/Homebrew/test/language/node_spec.rb
index 6021dd47d..4675bb60b 100644
--- a/Library/Homebrew/test/language/node_spec.rb
+++ b/Library/Homebrew/test/language/node_spec.rb
@@ -31,7 +31,8 @@ describe Language::Node do
it "does not raise error with a zero exitstatus" do
allow(Utils).to receive(:popen_read).with("npm pack").and_return("pack")
- allow($?).to receive(:exitstatus).and_return(0)
+ allow_any_instance_of(Process::Status).to receive(:exitstatus).and_return(0)
+ allow_any_instance_of(nil::NilClass).to receive(:exitstatus).and_return(0)
resp = subject.std_npm_install_args(npm_install_arg)
expect(resp).to include("--prefix=#{npm_install_arg}", "#{Dir.pwd}/pack")
end