Class: ManageWebauthnCredentialsTest

Inherits:
ApplicationSystemTestCase
  • Object
show all
Includes:
VirtualAuthenticatorTestHelper
Defined in:
lib/generators/test_unit/webauthn_authentication/templates/test/system/manage_webauthn_credentials_test.rb

Instance Method Summary collapse

Methods included from VirtualAuthenticatorTestHelper

#add_credential_to_authenticator, #add_passkey_to_authenticator, #add_security_key_to_authenticator, #add_virtual_authenticator

Instance Method Details

#setupObject



7
8
9
10
# File 'lib/generators/test_unit/webauthn_authentication/templates/test/system/manage_webauthn_credentials_test.rb', line 7

def setup
  @user = User.create!(email_address: "[email protected]", password: "S3cr3tP@ssw0rd!")
  @authenticator = add_virtual_authenticator
end

#teardownObject



12
13
14
# File 'lib/generators/test_unit/webauthn_authentication/templates/test/system/manage_webauthn_credentials_test.rb', line 12

def teardown
  @authenticator.remove!
end