From b9f3589ab7ded946ea83d2a7c0f5b8580d99b66c Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Tue, 1 Sep 2020 18:34:14 +0200 Subject: [PATCH] Test casks are already tested covered `brew style`. --- Library/Homebrew/cask/cmd/style.rb | 9 +-------- Library/Homebrew/test/cask/cmd/style_spec.rb | 2 -- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/Library/Homebrew/cask/cmd/style.rb b/Library/Homebrew/cask/cmd/style.rb index efc95bb399..fc3cb60188 100644 --- a/Library/Homebrew/cask/cmd/style.rb +++ b/Library/Homebrew/cask/cmd/style.rb @@ -32,20 +32,13 @@ module Cask def cask_paths @cask_paths ||= if args.named.empty? - Tap.map(&:cask_dir).select(&:directory?).concat(test_cask_paths) + Tap.map(&:cask_dir).select(&:directory?) elsif args.named.any? { |file| File.exist?(file) } args.named.map { |path| Pathname(path).expand_path } else casks.map(&:sourcefile_path) end end - - def test_cask_paths - [ - Pathname.new("#{HOMEBREW_LIBRARY}/Homebrew/test/support/fixtures/cask/Casks"), - Pathname.new("#{HOMEBREW_LIBRARY}/Homebrew/test/support/fixtures/third-party/Casks"), - ] - end end end end diff --git a/Library/Homebrew/test/cask/cmd/style_spec.rb b/Library/Homebrew/test/cask/cmd/style_spec.rb index abef99db67..2acb184082 100644 --- a/Library/Homebrew/test/cask/cmd/style_spec.rb +++ b/Library/Homebrew/test/cask/cmd/style_spec.rb @@ -46,8 +46,6 @@ describe Cask::Cmd::Style, :cask do expect(subject).to contain_exactly( a_path_ending_with("/homebrew/homebrew-cask/Casks"), a_path_ending_with("/third-party/homebrew-tap/Casks"), - a_path_ending_with("/Homebrew/test/support/fixtures/cask/Casks"), - a_path_ending_with("/Homebrew/test/support/fixtures/third-party/Casks"), ) } end