Module: RuboCop::Cop::Capybara::RSpec::InflectedHelper

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

Overview

A helper for ‘inflected` style

Constant Summary collapse

EXPLICIT_MATCHER =
%w[css selector style xpath].map do |suffix|
  "matches_#{suffix}?".to_sym
end.freeze
MSG_INFLECTED =
'Prefer using `%<matcher_name>s` matcher over ' \
'`%<predicate_name>s`.'