diff options
author | kawaguchi <jiikko@users.noreply.github.com> | 2020-09-17 03:16:46 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-16 20:16:46 +0200 |
commit | 5d3c8baa9a0aa42c68cf0485c187652a435891ab (patch) | |
tree | 66747a803c1569c50a9dce8b5e01006aae319fab /spec | |
parent | 9b74f6aca6aa3d130895c4737d1fa1db4fcffb5c (diff) |
Fix validates :sign_count of WebauthnCredential (#14806)
Diffstat (limited to 'spec')
-rw-r--r-- | spec/models/webauthn_credentials_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/models/webauthn_credentials_spec.rb b/spec/models/webauthn_credentials_spec.rb index 9289c371e..a63ae6cd2 100644 --- a/spec/models/webauthn_credentials_spec.rb +++ b/spec/models/webauthn_credentials_spec.rb @@ -69,8 +69,8 @@ RSpec.describe WebauthnCredential, type: :model do expect(webauthn_credential).to model_have_error_on_field(:sign_count) end - it 'is invalid if sign_count is greater 2**32 - 1' do - webauthn_credential = Fabricate.build(:webauthn_credential, sign_count: 2**32) + it 'is invalid if sign_count is greater 2**63 - 1' do + webauthn_credential = Fabricate.build(:webauthn_credential, sign_count: 2**63) webauthn_credential.valid? |