class RuboCop::Cop::RSpec::StubbedMock

def replacement(method_name)

def replacement(method_name)
  case method_name
  when :expect
    '`allow`'
  when :is_expected
    '`allow(subject)`'
  when :expect_any_instance_of
    '`allow_any_instance_of`'
  else
    'an allow statement'
  end
end