class RuboCop::Cop::RSpec::VariableDefinition
def on_send(node)
def on_send(node) return unless inside_example_group?(node) variable_definition?(node) do |variable| next unless style_offense?(variable) add_offense( variable, message: format(MSG, style: style) ) do |corrector| corrector.replace(variable, correct_variable(variable)) end end end