Skip to content

Commit

Permalink
rubocops/service_spec: update test to cover custom name that requires…
Browse files Browse the repository at this point in the history
… root

This was added in recently and this just updates the test to reflect the
expected behavior for the cop.
  • Loading branch information
apainintheneck committed Mar 21, 2024
1 parent 7b2bfee commit 769b4f8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Library/Homebrew/test/rubocops/service_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,14 @@ class Foo < Formula
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
Expand Down

0 comments on commit 769b4f8

Please sign in to comment.