You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it 'prevents user from viewing user show page and redirects to home page if not logged in' do
create_standard_user
visit '/users/1'
expect(current_path).to eq('/')
expect(page).to have_content("Sign Up")
end
The previous test requires creating a user to also log them in, but now this test doesn't log them out before visiting '/users/1', even though it is testing what happens if a user is logged out.
The text was updated successfully, but these errors were encountered:
taoliu12
changed the title
conflicting tests
Conflicting tests: 'redirects to home page if not logged in'
Apr 26, 2019
users_features_spec 48:
The previous test requires creating a user to also log them in, but now this test doesn't log them out before visiting '/users/1', even though it is testing what happens if a user is logged out.
The text was updated successfully, but these errors were encountered: