mirror of
https://github.com/internetee/registry.git
synced 2025-05-16 17:37:17 +02:00
Admin user model returns min password length
This commit is contained in:
parent
b08e881a24
commit
14457921cc
2 changed files with 10 additions and 0 deletions
|
@ -33,4 +33,10 @@ RSpec.describe AdminUser do
|
|||
@admin_user.errors.full_messages.should match_array(["Password confirmation doesn't match Password"])
|
||||
end
|
||||
end
|
||||
|
||||
describe '::min_password_length' do
|
||||
it 'returns minimum password length' do
|
||||
expect(described_class.min_password_length).to eq(8)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue