brew/Library/Homebrew/test/cask/blacklist_spec.rb
Alec Clarke af10d13381 Check blacklisted Casks when auditing.
In some cases, certain Casks shouldn't be resubmitted for specific reasons: difficult to maintain, developers maintain their own version, ...

To make sure these cases are restricted - we can add them to a blacklist and have the blacklist checked as part of the `brew cask audit` steps.
2019-09-17 06:29:46 -07:00

22 lines
722 B
Ruby

# frozen_string_literal: true
describe Cask::Blacklist, :cask do
describe "::blacklisted_reason" do
matcher :blacklist do |name|
match do |expected|
expected.blacklisted_reason(name)
end
end
it { is_expected.not_to blacklist("adobe-air") }
it { is_expected.to blacklist("adobe-after-effects") }
it { is_expected.to blacklist("adobe-illustrator") }
it { is_expected.to blacklist("adobe-indesign") }
it { is_expected.to blacklist("adobe-photoshop") }
it { is_expected.to blacklist("adobe-premiere") }
it { is_expected.to blacklist("audacity") }
it { is_expected.to blacklist("pharo") }
it { is_expected.not_to blacklist("non-blacklisted-cask") }
end
end