Open
Description
users_features_spec 48:
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.
Metadata
Assignees
Labels
No labels