aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormansimarkaur2017-06-20 05:36:23 +0530
committermansimarkaur2017-06-23 03:40:03 +0530
commit69840e2a2faa839ad8d18faee1ebb3cb00e91446 (patch)
tree233f60326000f1e1d12f068465cdb4e11325c721
parentf225eaf4d9aad88fd0104192e2f0f6f5b9bbd8d3 (diff)
downloadbrew-69840e2a2faa839ad8d18faee1ebb3cb00e91446.tar.bz2
Avoided the prepend_path not existing method error
-rw-r--r--Library/Homebrew/test/language/node_spec.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/Library/Homebrew/test/language/node_spec.rb b/Library/Homebrew/test/language/node_spec.rb
index 68e8326f5..10e89208c 100644
--- a/Library/Homebrew/test/language/node_spec.rb
+++ b/Library/Homebrew/test/language/node_spec.rb
@@ -12,9 +12,8 @@ describe Language::Node do
end
stub_formula_loader(node)
allow_any_instance_of(Pathname).to receive(:exist?).and_return(false)
-
+ expect(ENV).to receive(:prepend_path)
subject.setup_npm_environment
- expect(ENV["PATH"]).to include(Formula["node"].opt_libexec/"bin")
end
it "does not call prepend_path when node formula does not exist but npmrc exists" do