mirror of
https://github.com/gosticks/brew.git
synced 2026-08-12 12:40:22 +00:00
Co-authored-by: Nanda H Krishna <nanda.harishankar@gmail.com>
18 lines
418 B
Ruby
18 lines
418 B
Ruby
# typed: false
|
|
# frozen_string_literal: true
|
|
|
|
require "rubocops/class"
|
|
|
|
describe RuboCop::Cop::FormulaAuditStrict::TestPresent do
|
|
subject(:cop) { described_class.new }
|
|
|
|
it "reports an offense when there is no test block" do
|
|
expect_offense(<<~RUBY)
|
|
class Foo < Formula
|
|
^^^^^^^^^^^^^^^^^^^ A `test do` test block should be added
|
|
url 'https://brew.sh/foo-1.0.tgz'
|
|
end
|
|
RUBY
|
|
end
|
|
end
|