diff options
| author | David Yun | 2016-10-07 01:16:06 +0800 |
|---|---|---|
| committer | David Yun | 2016-10-07 10:27:21 +0800 |
| commit | 81082303dc9e1d05561470d9355169b9953640d4 (patch) | |
| tree | d6885c0b2e4cd9fdfdff6ca0e2ecdffc7f86b453 /Library | |
| parent | d4927815a510a867bb5d674fc0e38bf1b3ac1e88 (diff) | |
| download | brew-81082303dc9e1d05561470d9355169b9953640d4.tar.bz2 | |
Use odeprecated rather than remove it entirely
* Fix IntegrationCommandTestCask
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cask/lib/hbc/dsl.rb | 4 | ||||
| -rw-r--r-- | Library/Homebrew/test/test_cask.rb | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/dsl.rb b/Library/Homebrew/cask/lib/hbc/dsl.rb index f074830cb..f8ed2bef5 100644 --- a/Library/Homebrew/cask/lib/hbc/dsl.rb +++ b/Library/Homebrew/cask/lib/hbc/dsl.rb @@ -204,6 +204,10 @@ module Hbc @sha256 ||= arg end + def license(arg = nil) + odeprecated "Hbc::DSL#license" + end + # depends_on uses a load method so that multiple stanzas can be merged def depends_on(*args) return @depends_on if args.empty? diff --git a/Library/Homebrew/test/test_cask.rb b/Library/Homebrew/test/test_cask.rb index 6f4f4601a..6cae6d54b 100644 --- a/Library/Homebrew/test/test_cask.rb +++ b/Library/Homebrew/test/test_cask.rb @@ -5,6 +5,6 @@ class IntegrationCommandTestCask < IntegrationCommandTestCase needs_test_cmd_taps needs_macos setup_remote_tap("caskroom/cask") - cmd("cask", "list") + cmd("cask", "list", "--caskroom=#{HOMEBREW_PREFIX}/Caskroom") end end |
