lib/rubocop/rspec/variable.rb in rubocop-rspec-1.42.0 vs lib/rubocop/rspec/variable.rb in rubocop-rspec-1.43.0
- old
+ new
@@ -6,10 +6,10 @@
module Variable
include Language
extend RuboCop::NodePattern::Macros
def_node_matcher :variable_definition?, <<~PATTERN
- (send #{RSPEC} #{(Helpers::ALL + Subject::ALL).node_pattern_union}
+ (send nil? #{(Helpers::ALL + Subject::ALL).node_pattern_union}
$({sym str dsym dstr} ...) ...)
PATTERN
end
end
end