spec/support/spec_config.rb
def credentials_or_x509(creds)
    if x509_auth?
      {auth_mech: :mongodb_x509}
    else
      creds
    end
  end
# When we use x.509 authentication, omit all of the users we normally create
# and authenticate with x.509.
When we use x.509 authentication, omit all of the users we normally create
and authenticate with x.509.
When we use x . 509 authentication omit all of the users we normally create and authenticate with x . 509 .
def credentials_or_x509(creds)
    if x509_auth?
      {auth_mech: :mongodb_x509}
    else
      creds
    end
  end
def credentials_or_x509 ( creds ) if x509_auth? { auth_mech : :mongodb_x509 } else creds end end
When we use x.509 authentication, omit all of the users we normally create
and authenticate with x.509.
When we use x . 509 authentication omit all of the users we normally create and authenticate with x . 509 .
creds