homebrew-cask/test/support/Casks
Roland Walker 81744a038d bugfix: make uninstall :script accept a hash
The indentation in CONTRIBUTING.md implies that :script accepts a hash.
But that is not the case. Instead :script accesses the entire hash defined
by uninstall.  Unrelated install keys such as :quit leak through to
@command.run! when attempting to exec :script.  Result: contrary to docs,
:script cannot be combined with other uninstall keys.

This PR makes uninstall :script accept a hash.  When :args or :input are not
needed, :script can still accept a plain string, so many Casks require no
alteration.

In addition
- adds key :executable, required when using hash argument to :script
- keys to :script are validated and sanitized before being passed to
  @command.run!
- adds :quit to with-installable.rb test to protect against regression
  on leaky keys
2014-01-11 12:20:59 -05:00
..
bad-checksum.rb support new one-arg link syntax 2013-05-23 21:03:37 -05:00
basic-cask.rb support new one-arg link syntax 2013-05-23 21:03:37 -05:00
local-caffeine.rb support new one-arg link syntax 2013-05-23 21:03:37 -05:00
local-transmission.rb support new one-arg link syntax 2013-05-23 21:03:37 -05:00
missing-checksum.rb support new one-arg link syntax 2013-05-23 21:03:37 -05:00
naked-pkg.rb naked pkg support + major container refactor 2013-09-21 21:59:07 -05:00
nested-app.rb support for nested containers 2013-10-19 16:20:00 -05:00
no-checksum.rb support new one-arg link syntax 2013-05-23 21:03:37 -05:00
tarball.rb add test that exercises tar container 2013-11-05 21:33:46 -06:00
with-binary.rb implement `binary` artifact 2014-01-05 22:55:18 +02:00
with-caveats.rb support new one-arg link syntax 2013-05-23 21:03:37 -05:00
with-installable.rb bugfix: make uninstall :script accept a hash 2014-01-11 12:20:59 -05:00
with-macosx-dir.rb support new one-arg link syntax 2013-05-23 21:03:37 -05:00
with-pkgutil-uninstall.rb pkg uninstall: support kernel extension unloading 2013-09-22 08:25:16 -05:00