Attempt to fix tests
This commit is contained in:
parent
69840e2a2f
commit
5fed1f5cbe
@ -31,7 +31,7 @@ describe Language::Node do
|
|||||||
|
|
||||||
it "does not raise error with a zero exitstatus" do
|
it "does not raise error with a zero exitstatus" do
|
||||||
allow(Utils).to receive(:popen_read).with("npm pack").and_return("pack")
|
allow(Utils).to receive(:popen_read).with("npm pack").and_return("pack")
|
||||||
allow_any_instance_of(Process::Status).to receive(:exitstatus).and_return(0)
|
allow($?).to receive(:exitstatus).and_return(0)
|
||||||
resp = subject.std_npm_install_args(npm_install_arg)
|
resp = subject.std_npm_install_args(npm_install_arg)
|
||||||
expect(resp).to include("--prefix=#{npm_install_arg}", "#{Dir.pwd}/pack")
|
expect(resp).to include("--prefix=#{npm_install_arg}", "#{Dir.pwd}/pack")
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user