diff options
author | Kamil Trzciński <ayufan@ayufan.eu> | 2019-01-04 14:11:41 +0300 |
---|---|---|
committer | Kamil Trzciński <ayufan@ayufan.eu> | 2019-01-04 14:11:41 +0300 |
commit | 95920a2c1caa2e974db6e3fc5d5d73b269b64999 (patch) | |
tree | 528c7ad835a647a07293eced43c5834ac547d806 /spec/support | |
parent | 8002c5056f9a827e16f7f4885c6740a9f69a9ff6 (diff) | |
parent | 5f110a6acff7571126c22013923d3f5d2aab770d (diff) |
Merge branch 'ce-revert-revert-gold-trial-mrs' into 'master'
Bring back reverted Gold Trial MR (CE backport)
See merge request gitlab-org/gitlab-ce!23621
Diffstat (limited to 'spec/support')
-rw-r--r-- | spec/support/shared_examples/project_list_shared_examples.rb | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/spec/support/shared_examples/project_list_shared_examples.rb b/spec/support/shared_examples/project_list_shared_examples.rb new file mode 100644 index 00000000000..675d489fcab --- /dev/null +++ b/spec/support/shared_examples/project_list_shared_examples.rb @@ -0,0 +1,19 @@ +# 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 |