rename username to email

This commit is contained in:
Karol Selak 2021-03-20 22:37:38 +01:00
parent 7412853a3e
commit cd40ef66c6
9 changed files with 18 additions and 13 deletions

View file

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