diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-02-18 01:04:14 +0300 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-02-20 17:12:05 +0300 |
commit | 3b98adcc75f82f4e5e469da5c164467da02b0f0c (patch) | |
tree | b8839b6775ca6817b95daa99501a9038aa38f114 /spec/services/merge_requests/close_service_spec.rb | |
parent | 4120b7941d75217d013dcc9612e3e5dff76f10d5 (diff) |
Create a pending task when a user is mentioned when edit a issue/mr/note
Diffstat (limited to 'spec/services/merge_requests/close_service_spec.rb')
-rw-r--r-- | spec/services/merge_requests/close_service_spec.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/spec/services/merge_requests/close_service_spec.rb b/spec/services/merge_requests/close_service_spec.rb index 3e72be2dc25..13872a1a2dd 100644 --- a/spec/services/merge_requests/close_service_spec.rb +++ b/spec/services/merge_requests/close_service_spec.rb @@ -5,9 +5,7 @@ describe MergeRequests::CloseService, services: true do let(:user2) { create(:user) } let(:merge_request) { create(:merge_request, assignee: user2) } let(:project) { merge_request.project } - let!(:pending_task) do - create(:pending_assigned_task, user: user, project: project, target: merge_request, author: user2) - end + let!(:pending_task) { create(:task, :assigned, user: user, project: project, target: merge_request, author: user2) } before do project.team << [user, :master] |