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/issues | |
parent | 4120b7941d75217d013dcc9612e3e5dff76f10d5 (diff) |
Create a pending task when a user is mentioned when edit a issue/mr/note
Diffstat (limited to 'spec/services/issues')
-rw-r--r-- | spec/services/issues/close_service_spec.rb | 4 | ||||
-rw-r--r-- | spec/services/issues/update_service_spec.rb | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/spec/services/issues/close_service_spec.rb b/spec/services/issues/close_service_spec.rb index 7a587a96ddc..fdf0fd819b2 100644 --- a/spec/services/issues/close_service_spec.rb +++ b/spec/services/issues/close_service_spec.rb @@ -5,9 +5,7 @@ describe Issues::CloseService, services: true do let(:user2) { create(:user) } let(:issue) { create(:issue, assignee: user2) } let(:project) { issue.project } - let!(:pending_task) do - create(:pending_assigned_task, user: user, project: project, target: issue, author: user2) - end + let!(:pending_task) { create(:task, :assigned, user: user, project: project, target: issue, author: user2) } before do project.team << [user, :master] diff --git a/spec/services/issues/update_service_spec.rb b/spec/services/issues/update_service_spec.rb index 1b7d5b45168..5674b9f1e9b 100644 --- a/spec/services/issues/update_service_spec.rb +++ b/spec/services/issues/update_service_spec.rb @@ -81,9 +81,7 @@ describe Issues::UpdateService, services: true do end context 'task queue' do - let!(:pending_task) do - create(:pending_assigned_task, user: user, project: project, target: issue, author: user2) - end + let!(:pending_task) { create(:task, :assigned, user: user, project: project, target: issue, author: user2) } context 'when the title change' do before do |