tests: add QuicTLSCheck test
This commit is contained in:
parent
83f2a69acb
commit
451bea2713
21
Library/Homebrew/test/rubocops/lines/quictls_check_spec.rb
Normal file
21
Library/Homebrew/test/rubocops/lines/quictls_check_spec.rb
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
|
require "rubocops/lines"
|
||||||
|
|
||||||
|
describe RuboCop::Cop::FormulaAudit::QuicTLSCheck do
|
||||||
|
subject(:cop) { described_class.new }
|
||||||
|
|
||||||
|
context "when auditing formula dependencies" do
|
||||||
|
it "reports an offense when a formula depends on `quictls`" do
|
||||||
|
expect_offense(<<~RUBY, "/homebrew-core/Formula/foo.rb")
|
||||||
|
class Foo < Formula
|
||||||
|
desc "foo"
|
||||||
|
url 'https://brew.sh/foo-1.0.tgz'
|
||||||
|
|
||||||
|
depends_on "quictls"
|
||||||
|
^^^^^^^^^^^^^^^^^^^^ FormulaAudit/QuicTLSCheck: Formulae in homebrew/core should use 'depends_on "openssl@3"' instead of 'depends_on "quictls"'.
|
||||||
|
end
|
||||||
|
RUBY
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
Loading…
x
Reference in New Issue
Block a user