aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test
diff options
context:
space:
mode:
authormansimarkaur2017-06-13 02:29:16 +0530
committermansimarkaur2017-06-23 03:40:03 +0530
commitcf5db0e0df38aee9e26099f6e4e8331d1f9352d5 (patch)
tree53b053c30d04bf60e26ce5adf387a59bd4ea8b01 /Library/Homebrew/test
parent7cd5d143c38ec6916794b3747442598727882b40 (diff)
downloadbrew-cf5db0e0df38aee9e26099f6e4e8331d1f9352d5.tar.bz2
Fixed style errors
Diffstat (limited to 'Library/Homebrew/test')
-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