lib/rubocop/cop/rspec/file_path.rb in rubocop-rspec-2.2.0 vs lib/rubocop/cop/rspec/file_path.rb in rubocop-rspec-2.3.0

- old
+ new

@@ -59,15 +59,17 @@ class FilePath < Base include TopLevelGroup MSG = 'Spec path should end with `%<suffix>s`.' + # @!method const_described(node) def_node_matcher :const_described, <<~PATTERN (block $(send #rspec? _example_group $(const ...) $...) ... ) PATTERN + # @!method routing_metadata?(node) def_node_search :routing_metadata?, '(pair (sym :type) (sym :routing))' def on_top_level_example_group(node) return unless top_level_groups.one?