Formatting and cope with more modern RSpec config changes

Co-authored-by: Ruoyu Zhong <zhongruoyu@outlook.com>
This commit is contained in:
Issy Long 2024-02-20 12:17:27 +00:00 committed by GitHub
parent 33c33b5338
commit ff23de4766
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -24,7 +24,7 @@ module RuboCop
return if dependencies.include?("libxml2") && dependencies.include?("libxslt")
offending_node(lxml)
problem "Add `uses_from_macos` lines above for \"libxml2\"` and \"libxslt\"."
problem "Add `uses_from_macos` lines above for `\"libxml2\"` and `\"libxslt\"`."
end
end
end

View File

@ -2,7 +2,7 @@
require "rubocops/resource_requires_dependencies"
describe RuboCop::Cop::FormulaAudit::ResourceRequiresDependencies do
RSpec.describe RuboCop::Cop::FormulaAudit::ResourceRequiresDependencies do
subject(:cop) { described_class.new }
context "when a formula does not have the lxml resource" do
@ -51,7 +51,7 @@ describe RuboCop::Cop::FormulaAudit::ResourceRequiresDependencies do
uses_from_macos "not_libxml2"
resource "lxml" do
^^^^^^^^^^^^^^^ FormulaAudit/ResourceRequiresDependencies: Add `uses_from_macos` lines above for "libxml2"` and "libxslt".
^^^^^^^^^^^^^^^ FormulaAudit/ResourceRequiresDependencies: Add `uses_from_macos` lines above for `"libxml2"` and `"libxslt"`.
url "blah"
sha256 "blah"
end