2019-08-20 14:26:26 +02:00
|
|
|
require 'rails_helper'
|
|
|
|
|
|
2019-08-22 17:09:13 +02:00
|
|
|
# RSpec.describe "Session", type: :system do
|
2019-08-20 14:26:26 +02:00
|
|
|
|
|
|
|
|
# def log_in_as(user)
|
|
|
|
|
# visit new_user_session_path
|
|
|
|
|
# fill_in "Email", with: "user0@example.com"
|
|
|
|
|
# fill_in "Password", with: "password"
|
|
|
|
|
# click_button "Log in"
|
|
|
|
|
# end
|
|
|
|
|
|
|
|
|
|
# let(:user) { FactoryBot.create(:user) }
|
|
|
|
|
|
|
|
|
|
# it 'allows a logged-in user to view profile settings' do
|
|
|
|
|
# log_in_as user
|
|
|
|
|
# visit edit_user_registration_path
|
|
|
|
|
# expect(current_path).to eq(edit_user_registration_path)
|
|
|
|
|
# end
|
|
|
|
|
|
2019-08-22 17:09:13 +02:00
|
|
|
# end
|