class RuboCop::Cop::RSpec::DescribeClass
end
describe TestedClass do
# good
end
describe ‘Do something’ do
# bad
@example
class or module.
Check that the first argument to the top level describe is the tested
def on_top_level_describe(_node, args)
def on_top_level_describe(_node, args) return if args.first && args.first.type == :const add_offense(args.first, :expression, MESSAGE) end