diff options
| author | Misty De Meo | 2017-02-26 16:49:09 +1100 |
|---|---|---|
| committer | Misty De Meo | 2017-02-27 08:24:44 +1100 |
| commit | e3f4701f385c286a2cc72c5d07870cc9a6ce0bf4 (patch) | |
| tree | 5f0ca1e6fae4ad61391e298181191c5a59bcd82e /Library/Homebrew/test | |
| parent | ff93e1624b214c9b48731174a9135789fc3695a8 (diff) | |
| download | brew-e3f4701f385c286a2cc72c5d07870cc9a6ce0bf4.tar.bz2 | |
audit: fix audit on formulae without homepages
Diffstat (limited to 'Library/Homebrew/test')
| -rw-r--r-- | Library/Homebrew/test/audit_test.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Library/Homebrew/test/audit_test.rb b/Library/Homebrew/test/audit_test.rb index f4b7cae4a..66e5af567 100644 --- a/Library/Homebrew/test/audit_test.rb +++ b/Library/Homebrew/test/audit_test.rb @@ -466,6 +466,17 @@ class FormulaAuditorTests < Homebrew::TestCase end end + def test_audit_without_homepage + fa = formula_auditor "foo", <<-EOS.undent, online: true + class Foo < Formula + url "http://example.com/foo-1.0.tgz" + end + EOS + + fa.audit_homepage + assert_match "Formula should have a homepage.", fa.problems.first + end + def test_audit_xcodebuild_suggests_symroot fa = formula_auditor "foo", <<-EOS.undent class Foo < Formula |
