module RuboCop::Cop::RSpec::InflectedHelper
def to_predicate_matcher(name)
def to_predicate_matcher(name) case name = name.to_s when 'is_a?' 'be_a' when 'instance_of?' 'be_an_instance_of' when 'include?', 'respond_to?' name[0..-2] when /^has_/ name.sub('has_', 'have_')[0..-2] else "be_#{name[0..-2]}" end end