diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-09-09 11:57:54 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-09-09 11:57:54 +0300 |
commit | b05cc8bc9aa5200a0fe3d2ce0afe18485a0aded5 (patch) | |
tree | 7d0cea775b4cafded2409d448aade0f369eca221 /spec/services/projects | |
parent | fbcde1aa779e56c7573cb86729e963b1bae186ff (diff) | |
parent | 6bd3d72bbdf288ecf2eee718f2943821c1401a22 (diff) |
Merge branch 'global_labels' into 'master'
Global labels
https://dev.gitlab.org/gitlab/gitlabhq/issues/2353
See merge request !1240
Diffstat (limited to 'spec/services/projects')
-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) |