From 81082303dc9e1d05561470d9355169b9953640d4 Mon Sep 17 00:00:00 2001 From: David Yun <abookyun@gmail.com> Date: Fri, 7 Oct 2016 01:16:06 +0800 Subject: [PATCH] Use odeprecated rather than remove it entirely * Fix IntegrationCommandTestCask --- Library/Homebrew/cask/lib/hbc/dsl.rb | 4 ++++ Library/Homebrew/test/test_cask.rb | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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 -- GitLab