Class: TestUnit::Generators::WebauthnAuthenticationGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/test_unit/webauthn_authentication/webauthn_authentication_generator.rb

Instance Method Summary collapse

Instance Method Details

#create_controller_test_filesObject



9
10
11
12
13
14
# File 'lib/generators/test_unit/webauthn_authentication/webauthn_authentication_generator.rb', line 9

def create_controller_test_files
  template "test/controllers/passkeys_controller_test.rb"
  template "test/controllers/webauthn_sessions_controller_test.rb"
  template "test/controllers/second_factor_authentications_controller_test.rb"
  template "test/controllers/second_factor_webauthn_credentials_controller_test.rb"
end

#create_system_test_filesObject



16
17
18
# File 'lib/generators/test_unit/webauthn_authentication/webauthn_authentication_generator.rb', line 16

def create_system_test_files
  template "test/system/manage_webauthn_credentials_test.rb"
end

#create_test_helper_filesObject



20
21
22
# File 'lib/generators/test_unit/webauthn_authentication/webauthn_authentication_generator.rb', line 20

def create_test_helper_files
  template "test/test_helpers/virtual_authenticator_test_helper.rb"
end