Merge pull request #16929 from Homebrew/update-test-for-custom-service-require-root

rubocops/service_spec: update test for name and require root
This commit is contained in:
Mike McQuaid 2024-03-21 12:24:07 +00:00 committed by GitHub
commit a2378f29d9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -19,13 +19,14 @@ RSpec.describe RuboCop::Cop::FormulaAudit::Service do
RUBY
end
it "reports no offenses when a service block only includes custom names" do
it "reports no offenses when a service block includes custom names and requires root" do
expect_no_offenses(<<~RUBY)
class Foo < Formula
url "https://brew.sh/foo-1.0.tgz"
service do
name macos: "custom.mcxl.foo", linux: "custom.foo"
require_root true
end
end
RUBY