summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
Diffstat (limited to 'spec')
-rw-r--r--spec/services/task_service_spec.rb4
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