Skip to content

Commit

Permalink
Merge pull request #16929 from Homebrew/update-test-for-custom-servic…
Browse files Browse the repository at this point in the history
…e-require-root

rubocops/service_spec: update test for name and require root
  • Loading branch information
MikeMcQuaid committed Mar 21, 2024
2 parents dddc24d + 769b4f8 commit a2378f2
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 a2378f2

Please sign in to comment.