diff options
| author | Mike McQuaid | 2017-05-30 19:10:39 +0100 |
|---|---|---|
| committer | GitHub | 2017-05-30 19:10:39 +0100 |
| commit | 344c49229936736c902e08d965b4ed2262aa2c0c (patch) | |
| tree | 6283eb6e1e2930ec20a0bab2dc1990fbd955b223 /Library/Homebrew/test/dev-cmd | |
| parent | d1f802c372563e36fe656c4662cae9e5b4138cdd (diff) | |
| parent | cfbdc17cb7a86bca8efcea082f8cabb459b9b260 (diff) | |
| download | brew-344c49229936736c902e08d965b4ed2262aa2c0c.tar.bz2 | |
Merge pull request #2662 from GauthamGoli/audit_text_rubocop
audit: Port audit_text method to rubocop and add tests
Diffstat (limited to 'Library/Homebrew/test/dev-cmd')
| -rw-r--r-- | Library/Homebrew/test/dev-cmd/audit_spec.rb | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/Library/Homebrew/test/dev-cmd/audit_spec.rb b/Library/Homebrew/test/dev-cmd/audit_spec.rb index 97cc0f152..b90a21b55 100644 --- a/Library/Homebrew/test/dev-cmd/audit_spec.rb +++ b/Library/Homebrew/test/dev-cmd/audit_spec.rb @@ -385,57 +385,6 @@ describe FormulaAuditor do end end - describe "#audit_text" do - specify "xcodebuild suggests symroot" do - fa = formula_auditor "foo", <<-EOS.undent - class Foo < Formula - url "http://example.com/foo-1.0.tgz" - homepage "http://example.com" - - def install - xcodebuild "-project", "meow.xcodeproject" - end - end - EOS - - fa.audit_text - expect(fa.problems.first) - .to match('xcodebuild should be passed an explicit "SYMROOT"') - end - - specify "bare xcodebuild also suggests symroot" do - fa = formula_auditor "foo", <<-EOS.undent - class Foo < Formula - url "http://example.com/foo-1.0.tgz" - homepage "http://example.com" - - def install - xcodebuild - end - end - EOS - - fa.audit_text - expect(fa.problems.first) - .to match('xcodebuild should be passed an explicit "SYMROOT"') - end - - specify "disallow go get usage" do - fa = formula_auditor "foo", <<-EOS.undent - class Foo <Formula - url "http://example.com/foo-1.0.tgz" - - def install - system "go", "get", "bar" - end - end - EOS - fa.audit_text - expect(fa.problems.first) - .to match("Formulae should not use `go get`. If non-vendored resources are required use `go_resource`s.") - end - end - describe "#audit_revision_and_version_scheme" do let(:origin_tap_path) { Tap::TAP_DIRECTORY/"homebrew/homebrew-foo" } let(:formula_subpath) { "Formula/foo#{@foo_version}.rb" } |
