Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/features/projects/fork_spec.rb')
-rw-r--r--spec/features/projects/fork_spec.rb28
1 files changed, 5 insertions, 23 deletions
diff --git a/spec/features/projects/fork_spec.rb b/spec/features/projects/fork_spec.rb
index 8b484141a95..39cdc8faa85 100644
--- a/spec/features/projects/fork_spec.rb
+++ b/spec/features/projects/fork_spec.rb
@@ -119,16 +119,6 @@ RSpec.describe 'Project fork', feature_category: :projects do
end
end
- shared_examples "increments the fork counter on the source project's page" do
- specify :sidekiq_might_not_need_inline do
- create_forks
-
- visit project_path(project)
-
- expect(page).to have_css('.fork-count', text: 2)
- end
- end
-
it_behaves_like 'fork button on project page'
it_behaves_like 'create fork page', 'Fork project'
@@ -185,25 +175,17 @@ RSpec.describe 'Project fork', feature_category: :projects do
end
end
- context 'with cache_home_panel feature flag' do
+ context 'when user is a maintainer in multiple groups' do
before do
create(:group_member, :maintainer, user: user, group: group2)
end
- context 'when caching is enabled' do
- before do
- stub_feature_flags(cache_home_panel: project)
- end
-
- it_behaves_like "increments the fork counter on the source project's page"
- end
+ it "increments the fork counter on the source project's page", :sidekiq_might_not_need_inline do
+ create_forks
- context 'when caching is disabled' do
- before do
- stub_feature_flags(cache_home_panel: false)
- end
+ visit project_path(project)
- it_behaves_like "increments the fork counter on the source project's page"
+ expect(page).to have_css('.fork-count', text: 2)
end
end
end