19 lines
671 B
Ruby
19 lines
671 B
Ruby
# frozen_string_literal: true
|
|
|
|
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
|
|
|
|
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
|