aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/test/language/node_spec.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/Library/Homebrew/test/language/node_spec.rb b/Library/Homebrew/test/language/node_spec.rb
index 4675bb60b..b2114bc4f 100644
--- a/Library/Homebrew/test/language/node_spec.rb
+++ b/Library/Homebrew/test/language/node_spec.rb
@@ -18,7 +18,7 @@ describe Language::Node do
it "does not call prepend_path when node formula does not exist but npmrc exists" do
allow_any_instance_of(Pathname).to receive(:exist?).and_return(false)
- expect(subject.setup_npm_environment).to eq(nil)
+ expect(subject.setup_npm_environment).to be_nil
end
end
@@ -26,7 +26,8 @@ describe Language::Node do
npm_install_arg = "libexec"
it "raises error with non zero exitstatus" do
- expect { subject.std_npm_install_args(npm_install_arg) }.to raise_error("npm failed to pack #{Dir.pwd}")
+ expect { subject.std_npm_install_args(npm_install_arg) }.to \
+ raise_error("npm failed to pack #{Dir.pwd}")
end
it "does not raise error with a zero exitstatus" do