aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cask/test/support/Casks/with-installer-script.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/cask/test/support/Casks/with-installer-script.rb')
-rw-r--r--Library/Homebrew/cask/test/support/Casks/with-installer-script.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/Library/Homebrew/cask/test/support/Casks/with-installer-script.rb b/Library/Homebrew/cask/test/support/Casks/with-installer-script.rb
new file mode 100644
index 000000000..3014a3945
--- /dev/null
+++ b/Library/Homebrew/cask/test/support/Casks/with-installer-script.rb
@@ -0,0 +1,15 @@
+test_cask 'with-installer-script' do
+ version '1.2.3'
+ sha256 '9203c30951f9aab41ac294bbeb1dcef7bed401ff0b353dcb34d68af32ea51853'
+
+ url TestHelper.local_binary_url('caffeine.zip')
+ homepage 'http://example.com/with-install-script'
+
+ installer script: '/usr/bin/true',
+ args: ['--flag']
+ # acceptable alternate form
+ installer script: {
+ executable: '/usr/bin/false',
+ args: ['--flag'],
+ }
+end