lib/rubocop/rspec/top_level_describe.rb in rubocop-rspec-1.33.0 vs lib/rubocop/rspec/top_level_describe.rb in rubocop-rspec-1.34.0
- old
+ new
@@ -4,13 +4,9 @@
module RSpec
# Helper methods for top level describe cops
module TopLevelDescribe
extend NodePattern::Macros
- def_node_matcher :described_constant, <<-PATTERN
- (block $(send _ :describe $(const ...)) (args) $_)
- PATTERN
-
def on_send(node)
return unless respond_to?(:on_top_level_describe)
return unless top_level_describe?(node)
on_top_level_describe(node, node.arguments)