module RuboCop::Cop::RSpec::InflectedHelper

def true?(to_symbol, matcher)

def true?(to_symbol, matcher)
  result = case matcher.method_name
           when :be, :eq
             matcher.first_argument.true_type?
           when :be_truthy, :a_truthy_value
             true
           when :be_falsey, :be_falsy, :a_falsey_value, :a_falsy_value
             false
           end
  to_symbol == :to ? result : !result
end