test/rubocops/cask/url: Ensure that autocorrection works

This commit is contained in:
Issy Long 2023-03-05 17:08:43 +00:00
parent 4e067565dd
commit d995afc000
No known key found for this signature in database
GPG Key ID: 8247C390DADC67D4

View File

@ -42,6 +42,16 @@ describe RuboCop::Cop::Cask::Url do
}]
end
let(:correct_source) do
<<~CASK
cask "foo" do
url "https://example.com/download/foo-v1.2.0.dmg",
verified: "example.com"
end
CASK
end
include_examples "reports offenses"
include_examples "autocorrects source"
end
end