summaryrefslogtreecommitdiff
path: root/spec/support/shared_examples/features/project_list_shared_examples.rb
blob: a15ba27b4caa8c0d641467f67b43b2eae7994637 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# frozen_string_literal: true

RSpec.shared_examples 'shows public projects' do
  it 'shows projects' do
    expect(page).to have_content(public_project.title)
    expect(page).not_to have_content(internal_project.title)
    expect(page).not_to have_content(private_project.title)
    expect(page).not_to have_content(archived_project.title)
  end
end

RSpec.shared_examples 'shows public and internal projects' do
  it 'shows projects' do
    expect(page).to have_content(public_project.title)
    expect(page).to have_content(internal_project.title)
    expect(page).not_to have_content(private_project.title)
    expect(page).not_to have_content(archived_project.title)
  end
end