Spec: remove superfluous code
This commit is contained in:
parent
f87e316a5d
commit
95cd301d0d
1 changed files with 0 additions and 5 deletions
|
@ -15,13 +15,8 @@ describe Users::SessionsController, type: :controller do
|
|||
let(:user) { instructeur.user }
|
||||
let(:send_password) { password }
|
||||
|
||||
before do
|
||||
allow(InstructeurMailer).to receive(:send_login_token).and_return(double(deliver_later: true))
|
||||
end
|
||||
|
||||
subject do
|
||||
post :create, params: { user: { email: email, password: send_password } }
|
||||
user.reload
|
||||
end
|
||||
|
||||
context 'when the credentials are right' do
|
||||
|
|
Loading…
Reference in a new issue