Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-02-18 01:04:14 +0300
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-02-20 17:12:05 +0300
commit3b98adcc75f82f4e5e469da5c164467da02b0f0c (patch)
treeb8839b6775ca6817b95daa99501a9038aa38f114 /spec/services/notes
parent4120b7941d75217d013dcc9612e3e5dff76f10d5 (diff)
Create a pending task when a user is mentioned when edit a issue/mr/note
Diffstat (limited to 'spec/services/notes')
-rw-r--r--spec/services/notes/update_service_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/services/notes/update_service_spec.rb b/spec/services/notes/update_service_spec.rb
index e6670143951..a8b3e0d825d 100644
--- a/spec/services/notes/update_service_spec.rb
+++ b/spec/services/notes/update_service_spec.rb
@@ -19,7 +19,7 @@ describe Notes::UpdateService, services: true do
end
context 'task queue' do
- let!(:task) { create(:pending_assigned_task, user: user, project: project, target: issue, author: user2) }
+ let!(:pending_task) { create(:task, :assigned, user: user, project: project, target: issue, author: user2) }
context 'when the note change' do
before do
@@ -27,7 +27,7 @@ describe Notes::UpdateService, services: true do
end
it 'marks pending tasks as done' do
- expect(task.reload).to be_done
+ expect(pending_task.reload).to be_done
end
end
@@ -37,7 +37,7 @@ describe Notes::UpdateService, services: true do
end
it 'keep pending tasks' do
- expect(task.reload).to be_pending
+ expect(pending_task.reload).to be_pending
end
end
end