test/rubocops/cask/url: Ensure that autocorrection works
This commit is contained in:
parent
4e067565dd
commit
d995afc000
@ -42,6 +42,16 @@ describe RuboCop::Cop::Cask::Url do
|
|||||||
}]
|
}]
|
||||||
end
|
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 "reports offenses"
|
||||||
|
include_examples "autocorrects source"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user