require 'rails_helper'
require 'capybara/rails'

describe "the log out process", type: :feature do
	let!(:user) {create(:user)}

	scenario 'logging out the current user' do
		visit "/users/#{user.id}"
		within ('.navbar') do
			click_link '#logout'
		end
		expect(page).to have_content 'Login'
	end
end
require 'rails_helper'
require 'capybara/rails'
require_relative '../support/session_helper.rb'
include SessionHelper

describe "the log out process", type: :feature do
	let!(:user) {create(:user)}

	scenario 'logging out the current user' do
		login(user)
		within ('nav') do
			click_button 'Logout'
		end
		expect(page).to have_content 'Login'
	end
	
end

Add test for logging user out; test passes
Add test for logging user out; test passes
