Avoided the prepend_path not existing method error
This commit is contained in:
parent
f225eaf4d9
commit
69840e2a2f
@ -12,9 +12,8 @@ describe Language::Node do
|
|||||||
end
|
end
|
||||||
stub_formula_loader(node)
|
stub_formula_loader(node)
|
||||||
allow_any_instance_of(Pathname).to receive(:exist?).and_return(false)
|
allow_any_instance_of(Pathname).to receive(:exist?).and_return(false)
|
||||||
|
expect(ENV).to receive(:prepend_path)
|
||||||
subject.setup_npm_environment
|
subject.setup_npm_environment
|
||||||
expect(ENV["PATH"]).to include(Formula["node"].opt_libexec/"bin")
|
|
||||||
end
|
end
|
||||||
|
|
||||||
it "does not call prepend_path when node formula does not exist but npmrc exists" do
|
it "does not call prepend_path when node formula does not exist but npmrc exists" do
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user