about summary refs log tree commit diff
path: root/spec/fabricators/webauthn_credential_fabricator.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/fabricators/webauthn_credential_fabricator.rb')
-rw-r--r--spec/fabricators/webauthn_credential_fabricator.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/fabricators/webauthn_credential_fabricator.rb b/spec/fabricators/webauthn_credential_fabricator.rb
index 496a7a735..ba59ce967 100644
--- a/spec/fabricators/webauthn_credential_fabricator.rb
+++ b/spec/fabricators/webauthn_credential_fabricator.rb
@@ -1,7 +1,7 @@
 Fabricator(:webauthn_credential) do
   user_id { Fabricate(:user).id }
   external_id { Base64.urlsafe_encode64(SecureRandom.random_bytes(16)) }
-  public_key { OpenSSL::PKey::EC.new("prime256v1").generate_key.public_key }
+  public_key { OpenSSL::PKey::EC.generate('prime256v1').public_key }
   nickname 'USB key'
   sign_count 0
 end