SessionControllerSpec: remove password syncing relating test
This commit is contained in:
parent
f0139c5962
commit
9c335698f1
1 changed files with 0 additions and 17 deletions
|
@ -104,23 +104,6 @@ describe Users::SessionsController, type: :controller do
|
|||
expect(subject.current_gestionnaire).to be(nil)
|
||||
expect(subject.current_administrateur).to be(nil)
|
||||
end
|
||||
|
||||
context 'with different passwords' do
|
||||
let!(:administrateur) { create(:administrateur, email: email, password: 'mot de passe complexe') }
|
||||
|
||||
before do
|
||||
user
|
||||
end
|
||||
|
||||
it 'should sync passwords on login' do
|
||||
post :create, params: { user: { email: email, password: password } }
|
||||
gestionnaire.reload
|
||||
administrateur.reload
|
||||
expect(user.valid_password?(password)).to be(true)
|
||||
expect(gestionnaire.valid_password?(password)).to be(true)
|
||||
expect(administrateur.valid_password?(password)).to be(true)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue