Sha256: ab2df34cbc1f31bed4862b7025a31f8dda0c455755cddb53f21ef1853a1267fb

Contents?: true

Size: 392 Bytes

Versions: 2

Compression:

Stored size: 392 Bytes

Contents

# frozen_string_literal: true

module RuboCop
  module RSpec
    module Language
      # Common node matchers used for matching against the rspec DSL
      module NodePattern
        extend RuboCop::NodePattern::Macros

        def_node_matcher :example_group?, <<-PATTERN
          (block (send _ {#{ExampleGroups::ALL.to_node_pattern}} ...) ...)
        PATTERN
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rubocop-rspec-1.8.0 lib/rubocop/rspec/language/node_pattern.rb
rubocop-rspec-1.7.0 lib/rubocop/rspec/language/node_pattern.rb