Fixed style errors
This commit is contained in:
parent
7cd5d143c3
commit
cf5db0e0df
@ -2,25 +2,25 @@ require "language/node"
|
|||||||
|
|
||||||
describe Language::Node do
|
describe Language::Node do
|
||||||
specify "#npm_cache_config" do
|
specify "#npm_cache_config" do
|
||||||
shutup do
|
shutup do
|
||||||
ret_val = described_class.npm_cache_config
|
ret_val = described_class.npm_cache_config
|
||||||
expect(ret_val).to eq("cache=#{HOMEBREW_CACHE}/npm_cache\n")
|
expect(ret_val).to eq("cache=#{HOMEBREW_CACHE}/npm_cache\n")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
describe "#pack_for_installation" do
|
describe "#pack_for_installation" do
|
||||||
it "raises error with non zero exitstatus" do
|
it "raises error with non zero exitstatus" do
|
||||||
shutup do
|
shutup do
|
||||||
expect{described_class.pack_for_installation}.to raise_error
|
expect { described_class.pack_for_installation }.to raise_error
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
it "does not raise error with a zero exitstatus" do
|
it "does not raise error with a zero exitstatus" do
|
||||||
shutup do
|
shutup do
|
||||||
allow_any_instance_of(Process::Status).to receive(:exitstatus).and_return(0)
|
allow_any_instance_of(Process::Status).to receive(:exitstatus).and_return(0)
|
||||||
expect{described_class.pack_for_installation}.not_to raise_error
|
expect { described_class.pack_for_installation }.not_to raise_error
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
describe "#setup_npm_environment" do
|
describe "#setup_npm_environment" do
|
||||||
@ -33,7 +33,7 @@ describe Language::Node do
|
|||||||
it "npmrc does not exist" do
|
it "npmrc does not exist" do
|
||||||
shutup do
|
shutup do
|
||||||
allow_any_instance_of(Pathname).to receive(:exist?).and_return(false)
|
allow_any_instance_of(Pathname).to receive(:exist?).and_return(false)
|
||||||
described_class.setup_npm_environment
|
described_class.setup_npm_environment
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -53,5 +53,4 @@ describe Language::Node do
|
|||||||
expect(resp).to eq(["--verbose"])
|
expect(resp).to eq(["--verbose"])
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
end
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user