summaryrefslogtreecommitdiff
path: root/spec/support/services
diff options
context:
space:
mode:
authorSemyon Pupkov <mail@semyonpupkov.com>2017-02-02 15:10:25 +0500
committerSemyon Pupkov <mail@semyonpupkov.com>2017-02-05 13:11:45 +0500
commit3deb66ea569cde62c3213b2671532c0db3c7263d (patch)
tree9e8085e752c20f28b711dd6a5920babb67cd6b07 /spec/support/services
parent4d11903dcf818342c4bde1af198eac7a45460318 (diff)
downloadgitlab-ce-3deb66ea569cde62c3213b2671532c0db3c7263d.tar.gz
Add traits for ProjectFeatures to Project factory
https://gitlab.com/gitlab-org/gitlab-ce/issues/24007
Diffstat (limited to 'spec/support/services')
-rw-r--r--spec/support/services/issuable_create_service_shared_examples.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/support/services/issuable_create_service_shared_examples.rb b/spec/support/services/issuable_create_service_shared_examples.rb
index 93c0267d2db..4f0c745b7ee 100644
--- a/spec/support/services/issuable_create_service_shared_examples.rb
+++ b/spec/support/services/issuable_create_service_shared_examples.rb
@@ -31,8 +31,8 @@ shared_examples 'issuable create service' do
context "when issuable feature is private" do
before do
- project.project_feature.update(issues_access_level: ProjectFeature::PRIVATE)
- project.project_feature.update(merge_requests_access_level: ProjectFeature::PRIVATE)
+ project.project_feature.update(issues_access_level: ProjectFeature::PRIVATE,
+ merge_requests_access_level: ProjectFeature::PRIVATE)
end
levels = [Gitlab::VisibilityLevel::INTERNAL, Gitlab::VisibilityLevel::PUBLIC]