Last active
October 20, 2017 07:39
-
-
Save domagude/1eea8b18edf7ec2d94fa083a8df1600f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "rails_helper" | |
RSpec.feature "Logout", :type => :feature do | |
let(:user) { create(:user) } | |
scenario 'user successfully logs out', js: true do | |
sign_in user | |
visit root_path | |
find('nav #user-settings').click | |
find('nav a', text: 'Log out').click | |
expect(page).to have_selector('nav a', text: 'Login') | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment