Module: RuboCop::Cop::RSpec::ExplicitHelper

Extended by:
NodePattern::Macros
Includes:
RSpec::Language
Included in:
PredicateMatcher
Defined in:
lib/rubocop/cop/rspec/predicate_matcher.rb

Overview

A helper for ‘explicit` style

Constant Summary collapse

MSG_EXPLICIT =
'Prefer using `%<predicate_name>s` over ' \
'`%<matcher_name>s` matcher.'
BUILT_IN_MATCHERS =
%w[
  be_truthy be_falsey be_falsy
  have_attributes have_received
  be_between be_within
].freeze

Method Summary

Methods included from RSpec::Language

#example?, #example_group?, #example_group_with_body?, #explicit_rspec?, #hook?, #include?, #let?, #rspec?, #shared_group?, #spec_group?, #subject?

Methods included from RSpec::Language::NodePattern

#block_or_numblock_pattern, #block_pattern, #numblock_pattern, #send_pattern