Skip to content
Snippets Groups Projects
Unverified Commit ed1ae19a authored by Dominyk Tiller's avatar Dominyk Tiller
Browse files

audit_spec: test go get ban

parent 2ad43cb1
No related branches found
No related tags found
No related merge requests found
......@@ -430,6 +430,21 @@ describe FormulaAuditor do
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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment