Sha256: 3389fb7f7e96a90119a7b79125c6180a60926e0fbd929e205ba3bcdc85a7b8ae

Contents?: true

Size: 387 Bytes

Versions: 5

Compression:

Stored size: 387 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?, ExampleGroups::ALL.block_pattern
        def_node_matcher :example?, Examples::ALL.block_pattern
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rubocop-rspec-1.14.0 lib/rubocop/rspec/language/node_pattern.rb
rubocop-rspec-1.13.0 lib/rubocop/rspec/language/node_pattern.rb
rubocop-rspec-1.12.0 lib/rubocop/rspec/language/node_pattern.rb
rubocop-rspec-1.11.0 lib/rubocop/rspec/language/node_pattern.rb
rubocop-rspec-1.10.0 lib/rubocop/rspec/language/node_pattern.rb