aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cask/lib
diff options
context:
space:
mode:
authorVítor Galvão2017-02-04 19:11:40 +0000
committerGitHub2017-02-04 19:11:40 +0000
commit7c368962c9fc968beb812af9d209da2038c74cfb (patch)
tree00ca039a0df1768f71b6421bc6abe8552130983e /Library/Homebrew/cask/lib
parent70b1c6de0b889aabc86b1990c59994e6acb8d726 (diff)
parent0802ad734f20c4e8507a1423513ef08301ea19d0 (diff)
downloadbrew-7c368962c9fc968beb812af9d209da2038c74cfb.tar.bz2
Merge pull request #1949 from reitermarkus/remove-test_cask
Remove `TestCask` class.
Diffstat (limited to 'Library/Homebrew/cask/lib')
-rw-r--r--Library/Homebrew/cask/lib/hbc/cask_loader.rb14
1 files changed, 2 insertions, 12 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/cask_loader.rb b/Library/Homebrew/cask/lib/hbc/cask_loader.rb
index 3875b30df..3fe02d7e1 100644
--- a/Library/Homebrew/cask/lib/hbc/cask_loader.rb
+++ b/Library/Homebrew/cask/lib/hbc/cask_loader.rb
@@ -32,22 +32,12 @@ module Hbc
end
def cask(header_token, &block)
- @klass = Cask
- build_cask(header_token, &block)
- end
-
- def test_cask(header_token, &block)
- @klass = TestCask
- build_cask(header_token, &block)
- end
-
- def build_cask(header_token, &block)
raise CaskTokenDoesNotMatchError.new(@token, header_token) unless @token == header_token
if @path.nil?
- @klass.new(@token, &block)
+ Cask.new(@token, &block)
else
- @klass.new(@token, sourcefile_path: @path, &block)
+ Cask.new(@token, sourcefile_path: @path, &block)
end
end
end