Commit b5db9562 authored by George Tsiolis's avatar George Tsiolis

Add description, visibility to CreateFromTemplateService spec

parent 84e7654c
---
title: Respect description and visibility when creating project from template
merge_request: 16820
author: George Tsiolis
type: fixed
...@@ -5,7 +5,9 @@ describe Projects::CreateFromTemplateService do ...@@ -5,7 +5,9 @@ describe Projects::CreateFromTemplateService do
let(:project_params) do let(:project_params) do
{ {
path: user.to_param, path: user.to_param,
template_name: 'rails' template_name: 'rails',
description: 'project description',
visibility_level: Gitlab::VisibilityLevel::PRIVATE
} }
end end
...@@ -22,5 +24,7 @@ describe Projects::CreateFromTemplateService do ...@@ -22,5 +24,7 @@ describe Projects::CreateFromTemplateService do
expect(project).to be_saved expect(project).to be_saved
expect(project.scheduled?).to be(true) expect(project.scheduled?).to be(true)
expect(project.description).to match('project description')
expect(project.visibility_level).to eq(Gitlab::VisibilityLevel::PRIVATE)
end end
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment