lib/rubocop/cop/rspec/variable_definition.rb in rubocop-rspec-2.18.1 vs lib/rubocop/cop/rspec/variable_definition.rb in rubocop-rspec-2.19.0

- old
+ new

@@ -25,13 +25,16 @@ # class VariableDefinition < Base extend AutoCorrector include ConfigurableEnforcedStyle include Variable + include InsideExampleGroup MSG = 'Use %<style>s for variable names.' def on_send(node) + return unless inside_example_group?(node) + variable_definition?(node) do |variable| next unless style_violation?(variable) add_offense( variable,