2019-02-15 15:39:39 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2020-03-13 15:44:24 +05:30
|
|
|
RSpec.shared_examples 'shows public projects' do
|
2019-02-15 15:39:39 +05:30
|
|
|
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
|
|
|
|
|
2020-03-13 15:44:24 +05:30
|
|
|
RSpec.shared_examples 'shows public and internal projects' do
|
2019-02-15 15:39:39 +05:30
|
|
|
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
|