lib/rubocop/cop/rspec/example_without_description.rb in rubocop-rspec-2.2.0 vs lib/rubocop/cop/rspec/example_without_description.rb in rubocop-rspec-2.3.0
- old
+ new
@@ -52,9 +52,10 @@
MSG_DEFAULT_ARGUMENT = 'Omit the argument when you want to ' \
'have auto-generated description.'
MSG_ADD_DESCRIPTION = 'Add a description.'
+ # @!method example_description(node)
def_node_matcher :example_description, '(send nil? _ $(str $_))'
def on_block(node)
return unless example?(node)