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:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-04-01 18:14:27 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-04-01 18:14:27 +0300
commitafbaf78b0d819326741a01b093bdbc4702570417 (patch)
treea16a6f2a8fcc18e60f25ac72df6ab22cfe0eae79 /spec/helpers
parent38b3003b67db3f2eadfa81fd28b13d168f665766 (diff)
Add latest changes from gitlab-org/gitlab@13-10-stable-ee
Diffstat (limited to 'spec/helpers')
-rw-r--r--spec/helpers/commits_helper_spec.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/helpers/commits_helper_spec.rb b/spec/helpers/commits_helper_spec.rb
index 397751b07af..2a8e2e04947 100644
--- a/spec/helpers/commits_helper_spec.rb
+++ b/spec/helpers/commits_helper_spec.rb
@@ -257,5 +257,15 @@ RSpec.describe CommitsHelper do
{ id: forked_project.id.to_s, name: forked_project.full_path, refsUrl: refs_project_path(forked_project) }
])
end
+
+ context 'pick_into_project is disabled' do
+ before do
+ stub_feature_flags(pick_into_project: false)
+ end
+
+ it 'does not calculate target projects' do
+ expect(helper.cherry_pick_projects_data(project)).to eq([])
+ end
+ end
end
end