test/lib/testhelper/auth.rb
def save_rw_credentials(label: nil, acct: nil, server: nil, pw: nil, port: nil)
      Keychain.default.internet_passwords.where(label: label).all.each(&:delete)
      item = Keychain.default.internet_passwords.create label: label, account: acct, server: server, password: pw, port: port
      item.save!
    end
# Save the credentials in the login keychain
#
# @param user[String] the username to save
#
# @param pw[String] the password to save with the username
#
# @return [void]
#
Save the credentials in the login keychain
Save the credentials in the login keychain
def save_rw_credentials(label: nil, acct: nil, server: nil, pw: nil, port: nil)
      Keychain.default.internet_passwords.where(label: label).all.each(&:delete)
      item = Keychain.default.internet_passwords.create label: label, account: acct, server: server, password: pw, port: port
      item.save!
    end
def save_rw_credentials ( label : nil , acct : nil , server : nil , pw : nil , port : nil ) Keychain . default . internet_passwords . where ( label : label ) . all . each ( & :delete ) item = Keychain . default . internet_passwords . create label : label , account : acct , server : server , password : pw , port : port item . save! end
Save the credentials in the login keychain
Save the credentials in the login keychain
None
void
label
acct
server
pw
the password to save with the username
the password to save with the username
port
user
the username to save
the username to save