homebrew-cask/test/support
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
..
Casks bugfix: make uninstall :script accept a hash 2014-01-11 12:20:59 -05:00
binaries implement `binary` artifact 2014-01-05 22:55:18 +02:00
cleanup.rb change cleanup strategy; should speed up tests 2013-12-14 08:45:54 -06:00
fake_dirs.rb implement `binary` artifact 2014-01-05 22:55:18 +02:00
fake_fetcher.rb get linkapps tests de-mockified 2012-11-25 15:49:16 -06:00
fake_system_command.rb fixes to pkg uninstaller to prevent madness 2013-10-24 14:56:29 -05:00
never_sudo_system_command.rb fixes to pkg uninstaller to prevent madness 2013-10-24 14:56:29 -05:00