diff options
author | Valery Sizov <vsv2711@gmail.com> | 2015-09-03 18:44:58 +0300 |
---|---|---|
committer | Valery Sizov <vsv2711@gmail.com> | 2015-09-03 19:02:14 +0300 |
commit | 6bd3d72bbdf288ecf2eee718f2943821c1401a22 (patch) | |
tree | abbd88a9aa341b9bf3c8c4fae9033d350db89aa5 /spec | |
parent | f5ffeac058260de26efdcdae4205804154bc027e (diff) |
added spinach for glabal labels
Diffstat (limited to 'spec')
-rw-r--r-- | spec/services/projects/create_service_spec.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/services/projects/create_service_spec.rb b/spec/services/projects/create_service_spec.rb index 66cdfd5d758..ff4ed2dd484 100644 --- a/spec/services/projects/create_service_spec.rb +++ b/spec/services/projects/create_service_spec.rb @@ -17,6 +17,14 @@ describe Projects::CreateService do expect(project.services).not_to be_empty end + it 'creates labels on Project creation if there are templates' do + Label.create(title: "bug", template: true) + project = create_project(@user, @opts) + project.reload + + expect(project.labels).not_to be_empty + end + context 'user namespace' do before do @project = create_project(@user, @opts) |