summaryrefslogtreecommitdiff
path: root/spec/features/todos/todos_spec.rb
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-06-14 23:09:48 -0300
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-06-17 16:17:43 -0300
commit2878c990052f78fae3cde21a1d2cd90dd5a85461 (patch)
tree6b026bd7ec4c80c2f46deef6e2009496a024b200 /spec/features/todos/todos_spec.rb
parentbb4a1ef6c1ed4d367e6126ad64033e0286da6f15 (diff)
downloadgitlab-ce-2878c990052f78fae3cde21a1d2cd90dd5a85461.tar.gz
Ensure Todos counters doesn't count Todos for projects pending delete
Diffstat (limited to 'spec/features/todos/todos_spec.rb')
-rw-r--r--spec/features/todos/todos_spec.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/features/todos/todos_spec.rb b/spec/features/todos/todos_spec.rb
index 8e1833a069e..0bdb1628c74 100644
--- a/spec/features/todos/todos_spec.rb
+++ b/spec/features/todos/todos_spec.rb
@@ -103,11 +103,15 @@ describe 'Dashboard Todos', feature: true do
before do
deleted_project = create(:project, visibility_level: Gitlab::VisibilityLevel::PUBLIC, pending_delete: true)
create(:todo, :mentioned, user: user, project: deleted_project, target: issue, author: author)
+ create(:todo, :mentioned, user: user, project: deleted_project, target: issue, author: author, state: :done)
login_as(user)
visit dashboard_todos_path
end
it 'shows "All done" message' do
+ within('.todos-pending-count') { expect(page).to have_content '0' }
+ expect(page).to have_content 'To do 0'
+ expect(page).to have_content 'Done 0'
expect(page).to have_content "You're all done!"
end
end