diff options
| author | mansimarkaur | 2017-06-24 02:34:10 +0530 |
|---|---|---|
| committer | mansimarkaur | 2017-06-24 02:34:10 +0530 |
| commit | 67c48360fa61b5f9db36489b84d881ad517e07e6 (patch) | |
| tree | 51947fc57bdb420d433ac585f830026d3ea21982 /Library | |
| parent | bfd19f91708abf0564a482377c5107b30b934437 (diff) | |
| download | brew-67c48360fa61b5f9db36489b84d881ad517e07e6.tar.bz2 | |
Improved code quality
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/test/language/node_spec.rb | 5 |
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 |
