Spec: remove superfluous code

This commit is contained in:
simon lehericey 2019-08-16 11:47:53 +02:00
parent f87e316a5d
commit 95cd301d0d

View file

@ -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