mirror of
https://github.com/fluent/fluentd-ui.git
synced 2025-08-13 17:57:10 +02:00
spec: Clarify password lengths
This commit is contained in:
parent
d6d7aa0b9b
commit
2f8561a071
@ -17,22 +17,22 @@ describe User do
|
|||||||
let(:current_password) { user.password }
|
let(:current_password) { user.password }
|
||||||
|
|
||||||
context 'when password/confirmation is 8 characters' do
|
context 'when password/confirmation is 8 characters' do
|
||||||
let(:password) { 'aaaaaaaa' }
|
let(:password) { 'a' * 8 }
|
||||||
let(:password_confirmation) { password }
|
let(:password_confirmation) { password }
|
||||||
|
|
||||||
it { should be_truthy }
|
it { should be_truthy }
|
||||||
end
|
end
|
||||||
|
|
||||||
context 'when password is 7 characters' do
|
context 'when password is 7 characters' do
|
||||||
let(:password) { 'aaaaaaa' }
|
let(:password) { 'a' * 7 }
|
||||||
let(:password_confirmation) { password }
|
let(:password_confirmation) { password }
|
||||||
|
|
||||||
it { should be_falsey }
|
it { should be_falsey }
|
||||||
end
|
end
|
||||||
|
|
||||||
context 'when password != password_confirmation' do
|
context 'when password != password_confirmation' do
|
||||||
let(:password) { 'aaaaaaaa' }
|
let(:password) { 'a' * 8 }
|
||||||
let(:password_confirmation) { 'bbbbbbbb' }
|
let(:password_confirmation) { 'b' * 8 }
|
||||||
|
|
||||||
it { should be_falsey }
|
it { should be_falsey }
|
||||||
end
|
end
|
||||||
@ -40,7 +40,7 @@ describe User do
|
|||||||
|
|
||||||
context 'when current_password is wrong' do
|
context 'when current_password is wrong' do
|
||||||
let(:current_password) { 'invalid_password' }
|
let(:current_password) { 'invalid_password' }
|
||||||
let(:password) { 'aaaaaaaa' }
|
let(:password) { 'a' * 8 }
|
||||||
let(:password_confirmation) { password }
|
let(:password_confirmation) { password }
|
||||||
|
|
||||||
it { should be_falsey }
|
it { should be_falsey }
|
||||||
|
Loading…
Reference in New Issue
Block a user