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:
authorSean McGivern <sean@gitlab.com>2018-01-05 20:55:37 +0300
committerStan Hu <stanhu@gmail.com>2018-01-17 04:04:38 +0300
commit3fc0564ae09a9edf87a71a8c85ff9bf8ad35121d (patch)
tree85ac8103dc85140d6a5e2d13b5949dd7f37cdd81 /spec/models/project_services
parent954a44574fd7a0be232a194d503032e16b8f3094 (diff)
Merge branch '41567-projectfix' into 'security-10-3'
check project access on MR create See merge request gitlab/gitlabhq!2273 (cherry picked from commit 1fe2325d6ef2bced4c5e97b57691c894f38b2834) 43e85f49 check project access on MR create
Diffstat (limited to 'spec/models/project_services')
-rw-r--r--spec/models/project_services/microsoft_teams_service_spec.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/models/project_services/microsoft_teams_service_spec.rb b/spec/models/project_services/microsoft_teams_service_spec.rb
index 6a5d0decfec..733086e258f 100644
--- a/spec/models/project_services/microsoft_teams_service_spec.rb
+++ b/spec/models/project_services/microsoft_teams_service_spec.rb
@@ -92,6 +92,10 @@ describe MicrosoftTeamsService do
service.hook_data(merge_request, 'open')
end
+ before do
+ project.add_developer(user)
+ end
+
it "calls Microsoft Teams API" do
chat_service.execute(merge_sample_data)