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>2020-03-17 18:09:10 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-03-17 18:09:10 +0300
commit8e129497b2565b8c595ef4f806d9a9595ca654e5 (patch)
tree7afeeca3ea58013c1e8c3a2055661bacf65577da /spec/services/git
parent8ae26d705abe341b03bc15d4373d6cd0c77c0baf (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/services/git')
-rw-r--r--spec/services/git/process_ref_changes_service_spec.rb36
1 files changed, 7 insertions, 29 deletions
diff --git a/spec/services/git/process_ref_changes_service_spec.rb b/spec/services/git/process_ref_changes_service_spec.rb
index 35ddf95b5f6..fc5e379f51d 100644
--- a/spec/services/git/process_ref_changes_service_spec.rb
+++ b/spec/services/git/process_ref_changes_service_spec.rb
@@ -55,36 +55,14 @@ describe Git::ProcessRefChangesService do
stub_application_setting(push_event_hooks_limit: push_event_hooks_limit)
end
- context 'git_push_execute_all_project_hooks is disabled' do
- before do
- stub_feature_flags(git_push_execute_all_project_hooks: false)
- end
-
- it "calls #{push_service_class} with execute_project_hooks set to false" do
- expect(push_service_class)
- .to receive(:new)
- .with(project, project.owner, hash_including(execute_project_hooks: false))
- .exactly(changes.count).times
- .and_return(service)
-
- subject.execute
- end
- end
-
- context 'git_push_execute_all_project_hooks is enabled' do
- before do
- stub_feature_flags(git_push_execute_all_project_hooks: true)
- end
-
- it "calls #{push_service_class} with execute_project_hooks set to true" do
- expect(push_service_class)
- .to receive(:new)
- .with(project, project.owner, hash_including(execute_project_hooks: true))
- .exactly(changes.count).times
- .and_return(service)
+ it "calls #{push_service_class} with execute_project_hooks set to false" do
+ expect(push_service_class)
+ .to receive(:new)
+ .with(project, project.owner, hash_including(execute_project_hooks: false))
+ .exactly(changes.count).times
+ .and_return(service)
- subject.execute
- end
+ subject.execute
end
end