From cf848a14d2de60b425d6e279051a919ff6ad1e43 Mon Sep 17 00:00:00 2001 From: Gautham Goli Date: Mon, 22 May 2017 13:09:49 +0530 Subject: audit: Port audit_caveats method to rubocop and add tests --- Library/Homebrew/test/dev-cmd/audit_spec.rb | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'Library/Homebrew/test/dev-cmd') 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 -- cgit v1.2.3