diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-02-15 16:55:03 -0200 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-02-20 12:10:26 -0200 |
commit | c8f2d18abde050c3b6d15ee32c99495c77b2a222 (patch) | |
tree | 95523dc3f54eb9827dad2f7b507fe021f5cc6f59 /spec | |
parent | 422a01fc853a93e8946c69dc2ad0ad1dea261653 (diff) | |
download | gitlab-ce-c8f2d18abde050c3b6d15ee32c99495c77b2a222.tar.gz |
Does not create a task for new issue when assignee is the current user
Diffstat (limited to 'spec')
-rw-r--r-- | spec/services/task_service_spec.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/services/task_service_spec.rb b/spec/services/task_service_spec.rb index ee3c4f8f95d..db9f77fd12d 100644 --- a/spec/services/task_service_spec.rb +++ b/spec/services/task_service_spec.rb @@ -25,6 +25,10 @@ describe TaskService, services: true do it 'does not create a task if unassigned' do is_expected_to_not_create_task { service.new_issue(unassigned_issue, author) } end + + it 'does not create a task if assignee is the current user' do + is_expected_to_not_create_task { service.new_issue(unassigned_issue, john_doe) } + end end describe '#reassigned_issue' do |