diff --git a/Library/Homebrew/cask/lib/hbc/dsl.rb b/Library/Homebrew/cask/lib/hbc/dsl.rb index f074830cb3..f8ed2bef55 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 6f4f4601a9..6cae6d54ba 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