Skip to content

Conflicting tests: 'redirects to home page if not logged in' #385

Open
@taoliu12

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions