diff options
| author | Gautham Goli | 2017-05-22 13:09:49 +0530 |
|---|---|---|
| committer | Gautham Goli | 2017-05-31 22:59:48 +0530 |
| commit | cf848a14d2de60b425d6e279051a919ff6ad1e43 (patch) | |
| tree | a1ac4c055cbb96f3b7953a8a3e265dd7d7ff5abf /Library/Homebrew/test/dev-cmd/audit_spec.rb | |
| parent | f9e8d8430154e3480d5255e35b802a46f9168b5a (diff) | |
| download | brew-cf848a14d2de60b425d6e279051a919ff6ad1e43.tar.bz2 | |
audit: Port audit_caveats method to rubocop and add tests
Diffstat (limited to 'Library/Homebrew/test/dev-cmd/audit_spec.rb')
| -rw-r--r-- | Library/Homebrew/test/dev-cmd/audit_spec.rb | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/Library/Homebrew/test/dev-cmd/audit_spec.rb b/Library/Homebrew/test/dev-cmd/audit_spec.rb index b90a21b55..25a179342 100644 --- a/Library/Homebrew/test/dev-cmd/audit_spec.rb +++ b/Library/Homebrew/test/dev-cmd/audit_spec.rb @@ -305,23 +305,6 @@ describe FormulaAuditor do end end - specify "#audit_caveats" do - fa = formula_auditor "foo", <<-EOS.undent - class Foo < Formula - homepage "http://example.com/foo" - url "http://example.com/foo-1.0.tgz" - - def caveats - "setuid" - end - end - EOS - - fa.audit_caveats - expect(fa.problems) - .to eq(["Don't recommend setuid in the caveats, suggest sudo instead."]) - end - describe "#audit_keg_only_style" do specify "keg_only_needs_downcasing" do fa = formula_auditor "foo", <<-EOS.undent, strict: true |
