lib/rubocop/cop/rspec/mixin/variable.rb in rubocop-rspec-2.2.0 vs lib/rubocop/cop/rspec/mixin/variable.rb in rubocop-rspec-2.3.0
- old
+ new
@@ -8,9 +8,10 @@
extend RuboCop::NodePattern::Macros
Subjects = RuboCop::RSpec::Language::Subjects
Helpers = RuboCop::RSpec::Language::Helpers
+ # @!method variable_definition?(node)
def_node_matcher :variable_definition?, <<~PATTERN
(send nil? {#Subjects.all #Helpers.all}
$({sym str dsym dstr} ...) ...)
PATTERN
end