rubocops/cask: Tweak offense message to read better

This commit is contained in:
Issy Long 2023-03-20 00:32:19 +00:00
parent 2c5165850a
commit 35cd764261
No known key found for this signature in database
GPG Key ID: 8247C390DADC67D4
2 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ module RuboCop
ON_SYSTEM_METHODS = RuboCop::Cask::Constants::ON_SYSTEM_METHODS
MESSAGE = <<~EOS
Do not use top-level `%<stanza>s` stanza as the default, add an `on_{system}` block instead.
Do not use a top-level `%<stanza>s` stanza as the default. Add it to an `on_{system}` block instead.
Use `:or_older` or `:or_newer` to specify a range of macOS versions.
EOS

View File

@ -76,7 +76,7 @@ describe RuboCop::Cop::Cask::NoOverrides do
let(:expected_offenses) do
[{
message: <<~EOS,
Do not use top-level `version` stanza as the default, add an `on_{system}` block instead.
Do not use a top-level `version` stanza as the default. Add it to an `on_{system}` block instead.
Use `:or_older` or `:or_newer` to specify a range of macOS versions.
EOS
severity: :convention,