Commit Graph

14 Commits

Author SHA1 Message Date
Josh Hagins 5daf6f1cba Audit: further spec enhancements and refactoring 2015-12-27 22:27:01 -05:00
Josh Hagins b4d4811f77 DRY up tests for required stanzas 2015-12-27 19:18:50 -05:00
Josh Hagins d7344feb5a Amend wording in sha256 audit spec 2015-12-27 18:52:13 -05:00
Josh Hagins cbf00b1023 Add audit checks for appcast
Check that appcast sha256:
  - exists
  - is a string of 64 hexadecimal characters
  - is not the sha256 for the empty string
2015-12-27 18:46:37 -05:00
Josh Hagins 4706c4f38a Test audit for invalid sha256 values 2015-12-27 18:46:37 -05:00
Josh Hagins a2be75aa4a Test that audit shows an error for missing name 2015-12-27 18:46:37 -05:00
Josh Hagins 75f4f03069 Test that audit shows an error for missing license 2015-12-27 18:46:37 -05:00
Paul Hinze 63d748e14c core: [refactor] separate Hbc::Cask from Hbc
Hbc is the namespace, Hbc::Cask is the object representing a Cask

One step on the path to reducing the surface area of the God-object
we've grown over the years. :)
2015-02-07 16:37:32 -06:00
Radek Simko adc695a035 Test casks decoupled 2015-01-24 21:12:26 +00:00
Roland Walker 202d6019f8 Move all code under an Hbc:: namespace
* convert existing Cask:: namespace to Hbc::
* move Homebrew-fork code under Hbc::
* move freestanding classes such as Tty and TopologicalHash under Hbc::
* recast HOMEBREW_CASK_ constants as HBC_
* modify our Homebrew Formula for backward compatibility
* devscripts and dev docs
2015-01-02 07:27:03 -05:00
Roland Walker 0bdc8cf99e actually require all required stanzas
* audit tests match the documentation
* require `license`
* require at least one activatable artifact (or explicit `stage_only`)
2014-12-20 11:34:49 -05:00
Roland Walker 1413bea1c0 `sha256 :no_check` overrides `version <string>`
This behavior was traditionally present, and is now recovered
by removing the audit test added in #4743.  The doc is clarified
but did not require major change.

closes: #6356
refs: #8179
2014-12-17 08:21:51 -05:00
Roland Walker 6d82c9770e change docs/tests to use version :latest
Instead of version 'latest' (value as string).  The string
value is still permitted during a transitional period.
2014-09-17 07:22:33 -04:00
Paul Hinze 58d4c745a9 install rspec; move first few tests over
refs #5080
2014-06-29 11:33:22 -05:00