aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/language/node_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/test/language/node_spec.rb')
-rw-r--r--Library/Homebrew/test/language/node_spec.rb33
1 files changed, 16 insertions, 17 deletions
diff --git a/Library/Homebrew/test/language/node_spec.rb b/Library/Homebrew/test/language/node_spec.rb
index 197d7fd7b..d8d476aeb 100644
--- a/Library/Homebrew/test/language/node_spec.rb
+++ b/Library/Homebrew/test/language/node_spec.rb
@@ -2,25 +2,25 @@ require "language/node"
describe Language::Node do
specify "#npm_cache_config" do
- shutup do
- ret_val = described_class.npm_cache_config
- expect(ret_val).to eq("cache=#{HOMEBREW_CACHE}/npm_cache\n")
- end
+ shutup do
+ ret_val = described_class.npm_cache_config
+ expect(ret_val).to eq("cache=#{HOMEBREW_CACHE}/npm_cache\n")
+ end
end
describe "#pack_for_installation" do
- it "raises error with non zero exitstatus" do
+ it "raises error with non zero exitstatus" do
shutup do
- expect{described_class.pack_for_installation}.to raise_error
- end
- end
+ expect { described_class.pack_for_installation }.to raise_error
+ end
+ end
- it "does not raise error with a zero exitstatus" do
- shutup do
- allow_any_instance_of(Process::Status).to receive(:exitstatus).and_return(0)
- expect{described_class.pack_for_installation}.not_to raise_error
- end
- end
+ it "does not raise error with a zero exitstatus" do
+ shutup do
+ allow_any_instance_of(Process::Status).to receive(:exitstatus).and_return(0)
+ expect { described_class.pack_for_installation }.not_to raise_error
+ end
+ end
end
describe "#setup_npm_environment" do
@@ -33,7 +33,7 @@ describe Language::Node do
it "npmrc does not exist" do
shutup do
allow_any_instance_of(Pathname).to receive(:exist?).and_return(false)
- described_class.setup_npm_environment
+ described_class.setup_npm_environment
end
end
end
@@ -53,5 +53,4 @@ describe Language::Node do
expect(resp).to eq(["--verbose"])
end
end
-
-end \ No newline at end of file
+end