From 67c48360fa61b5f9db36489b84d881ad517e07e6 Mon Sep 17 00:00:00 2001 From: mansimarkaur Date: Sat, 24 Jun 2017 02:34:10 +0530 Subject: Improved code quality --- Library/Homebrew/test/language/node_spec.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Library') 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 -- cgit v1.2.3