debian-mirror-gitlab/spec/support/shared_examples/features/project_list_shared_examples.rb

20 lines
683 B
Ruby
Raw Normal View History

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