class RuboCop::Cop::RSpec::ReceiveCounts

def matcher_for(method, count)

def matcher_for(method, count)
  matcher = count == 1 ? 'once' : 'twice'
  if method == :exactly
    ".#{matcher}"
  else
    ".#{method}(:#{matcher})"
  end
end