Skip to content

Commit

Permalink
test/rubocops/cask/url: Ensure that autocorrection works
Browse files Browse the repository at this point in the history
  • Loading branch information
issyl0 committed Mar 5, 2023
1 parent 4e06756 commit d995afc
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Library/Homebrew/test/rubocops/cask/url_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,16 @@
}]
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

0 comments on commit d995afc

Please sign in to comment.