aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/dev-cmd/audit_spec.rb
AgeCommit message (Collapse)Author
2018-02-06audit: Warn on new formulae containing binary URLsWilliam Woodruff
2017-11-10Remove more uses of EOS.undent.Mike McQuaid
2017-11-10Merge pull request #3292 from claui/add-audit-test-casesMike McQuaid
Add tests for `FormulaAuditor#audit_deps`
2017-10-20Add tests for `FormulaAuditor#audit_deps`Claudia
These tests cover a few aspects of the `FormulaAuditor#audit_deps` method. The main focus is the part where FormulaAuditor checks for dependencies on formulas which are tagged `keg_only` with the `:provided_by_macos` reason. For this particular kind of `keg_only` formulas, we expect `brew audit --new-formula` to fail with a problem message like: > Dependency 'bc' may be unnecessary as it is provided by > macOS; try to build this formula without it. For more details, see the relevant discussion: [1] https://github.com/Homebrew/homebrew-core/pull/14067#issuecomment-335046151 [2] https://github.com/Homebrew/brew/pull/3290#issuecomment-335052140
2017-10-18Use “squiggly” heredocs.Markus Reiter
2017-09-04audit: Port audit_class to rubocop, add tests and autocorrectGautham Goli
2017-08-06audit: Port classname and template comments audit rules from line_problems ↵Gautham Goli
method to rubocop
2017-07-29Silence all specs by default.Markus Reiter
2017-05-31audit: Port audit_caveats method to rubocop and add testsGautham Goli
2017-05-30audit: Port audit_text method to rubocop and add testsGautham Goli
2017-05-15Use scoped RSpec matchers.Markus Reiter
2017-05-14Port audit_homepage method to rubocop and add testsGautham Goli
2017-05-02audit_spec: add keg_only_style testsDominyk Tiller
2017-04-28audit_spec: test go get banDominyk Tiller
2017-04-24Merge pull request #2465 from GauthamGoli/audit_components_port_rubocopMike McQuaid
audit: audit_components method to rubocops and tests
2017-04-23Fix audit version_scheme and revision checks.Mike McQuaid
Another attempt at fixing `brew audit` issues around detecting `revision` and `version_scheme` changes correctly. First done in #1754 and #2086 (reverted in #2099 and #2100). To ease future debugging a `ph` helper has been added to print a hash and a series of RSpec tests to verify that the `revision`, `version_scheme` and `version` formula version audits behave as expected. Fixes #1731.
2017-04-22Port audit_components method to rubocops and add corresponding testsGautham Goli
2017-04-18audit: allow skipping audit methods.Mike McQuaid
Add `--only` and `--except` methods which can be used to selectively enable or disable audit groups.
2017-03-02Port audit_desc rules to copGautham Goli
2017-02-28Add `mktmpdir` helper method.Markus Reiter
2017-02-28Convert FormulaAuditor test to spec.Markus Reiter
2017-02-27Convert FormulaText test to spec.Markus Reiter