Sha256: d22af130fe468fc7c60e36931b5a1f0119a15c5434a1ad45cce4173a63555d06
Contents?: true
Size: 533 Bytes
Versions: 6
Compression:
Stored size: 533 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_group_with_body?, <<-PATTERN (block #{ExampleGroups::ALL.send_pattern} args [!nil]) PATTERN def_node_matcher :example?, Examples::ALL.block_pattern end end end end
Version data entries
6 entries across 6 versions & 1 rubygems