password recovery refactoring and tests

This commit is contained in:
Karol Selak 2021-03-21 14:44:59 +01:00
parent a69df8e658
commit 39a89ad564
5 changed files with 98 additions and 16 deletions

View file

@ -3,12 +3,12 @@ require 'rails_helper'
RSpec.describe ApplicationController do
describe 'current_user' do
before(:all) do
User.create(email: 'karol.selak@gmail.com', password: 'abcde')
User.create(email: 'test2@example.com', password: 'abcde')
end
context 'when a user is logged in' do
it 'returns the user' do
# TODO
# expect(current_user.email).to eql('karol.selak@gmail.com')
# expect(current_user.email).to eql('test2@example.com')
end
end
end