spec: replace reference to ds in password
This commit is contained in:
parent
7e085c657d
commit
c91e231347
18 changed files with 20 additions and 20 deletions
|
@ -78,7 +78,7 @@ describe Administrateur, type: :model do
|
|||
|
||||
# describe '#password_complexity' do
|
||||
# let(:email) { 'mail@beta.gouv.fr' }
|
||||
# let(:passwords) { ['pass', '12pass23', 'démarches ', 'démarches-simple', 'démarches-simplifiées-pwd'] }
|
||||
# let(:passwords) { ['pass', '12pass23', 'démarches ', 'démarches-simple', 'my-s3cure-p4ssword'] }
|
||||
# let(:administrateur) { build(:administrateur, email: email, password: password) }
|
||||
# let(:min_complexity) { PASSWORD_COMPLEXITY_FOR_ADMIN }
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ describe User, type: :model do
|
|||
let(:user) do
|
||||
create(:user,
|
||||
email: email,
|
||||
password: 'démarches-simplifiées-pwd',
|
||||
password: 'my-s3cure-p4ssword',
|
||||
confirmation_token: '123',
|
||||
confirmed_at: nil)
|
||||
end
|
||||
|
@ -125,11 +125,11 @@ describe User, type: :model do
|
|||
end
|
||||
|
||||
context 'with an existing user' do
|
||||
before { create(:user, email: email, password: 'démarches-simplifiées-pwd') }
|
||||
before { create(:user, email: email, password: 'my-s3cure-p4ssword') }
|
||||
|
||||
it 'keeps the previous password' do
|
||||
user = subject
|
||||
expect(user.valid_password?('démarches-simplifiées-pwd')).to be true
|
||||
expect(user.valid_password?('my-s3cure-p4ssword')).to be true
|
||||
expect(user.instructeur).to be_present
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue