aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/dev-cmd/audit_spec.rb
diff options
context:
space:
mode:
authorGautham Goli2017-05-24 00:08:31 +0530
committerGautham Goli2017-05-30 15:28:05 +0530
commit51f2338dd57eed5a7f18e147ccd4f4b9da19fb52 (patch)
tree2898652aad1c8b469298103197dcaa9b1abe1c6a /Library/Homebrew/test/dev-cmd/audit_spec.rb
parent5b97a8f2e163f09d2ba7d7ef6424b3394cc71d44 (diff)
downloadbrew-51f2338dd57eed5a7f18e147ccd4f4b9da19fb52.tar.bz2
audit: Port audit_text 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.rb51
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" }