Fix validates :sign_count of WebauthnCredential (#14806)
This commit is contained in:
parent
9b74f6aca6
commit
5d3c8baa9a
2 changed files with 3 additions and 3 deletions
|
@ -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?
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue