diff options
author | Douwe Maan <douwe@selenight.nl> | 2016-02-20 12:05:57 -0800 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2016-02-20 12:05:57 -0800 |
commit | 7f3026854515d0c9d713ad9356016a1fa55a3200 (patch) | |
tree | 82f031e6cf3f596986ce01c7d16d2a0465643ab5 | |
parent | 42cbcb23478f7b07c0c49e0020a8d3c834322e87 (diff) | |
download | gitlab-ce-7f3026854515d0c9d713ad9356016a1fa55a3200.tar.gz |
Update feature spec
-rw-r--r-- | features/steps/dashboard/todos.rb | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/features/steps/dashboard/todos.rb b/features/steps/dashboard/todos.rb index 207d997f8a0..9722a5a848c 100644 --- a/features/steps/dashboard/todos.rb +++ b/features/steps/dashboard/todos.rb @@ -26,13 +26,13 @@ class Spinach::Features::DashboardTodos < Spinach::FeatureSteps end step 'I should see todos assigned to me' do - expect(page).to have_content 'Todos 4' + expect(page).to have_content 'To do 4' expect(page).to have_content 'Done 0' expect(page).to have_link project.name_with_namespace - should_see_todo(1, "John Doe assigned merge request ##{merge_request.iid}", merge_request.title) + should_see_todo(1, "John Doe assigned you merge request !#{merge_request.iid}", merge_request.title) should_see_todo(2, "John Doe mentioned you on issue ##{issue.iid}", "#{current_user.to_reference} Wdyt?") - should_see_todo(3, "John Doe assigned issue ##{issue.iid}", issue.title) + should_see_todo(3, "John Doe assigned you issue ##{issue.iid}", issue.title) should_see_todo(4, "Mary Jane mentioned you on issue ##{issue.iid}", issue.title) end @@ -42,9 +42,9 @@ class Spinach::Features::DashboardTodos < Spinach::FeatureSteps end expect(page).to have_content 'Todo was successfully marked as done.' - expect(page).to have_content 'Todos 3' + expect(page).to have_content 'To do 3' expect(page).to have_content 'Done 1' - should_not_see_todo "John Doe assigned merge request ##{merge_request.iid}" + should_not_see_todo "John Doe assigned you merge request !#{merge_request.iid}" end step 'I click on the "Done" tab' do @@ -53,7 +53,7 @@ class Spinach::Features::DashboardTodos < Spinach::FeatureSteps step 'I should see all todos marked as done' do expect(page).to have_link project.name_with_namespace - should_see_todo(1, "John Doe assigned merge request ##{merge_request.iid}", merge_request.title, false) + should_see_todo(1, "John Doe assigned you merge request !#{merge_request.iid}", merge_request.title, false) end step 'I filter by "Enterprise"' do @@ -73,7 +73,7 @@ class Spinach::Features::DashboardTodos < Spinach::FeatureSteps end step 'I should not see todos' do - expect(page).to have_content 'No todos to show' + expect(page).to have_content "You're all done!" end step 'I should not see todos related to "Mary Jane" in the list' do @@ -81,12 +81,12 @@ class Spinach::Features::DashboardTodos < Spinach::FeatureSteps end step 'I should not see todos related to "Merge Requests" in the list' do - should_not_see_todo "John Doe assigned merge request ##{merge_request.iid}" + should_not_see_todo "John Doe assigned you merge request !#{merge_request.iid}" end step 'I should not see todos related to "Assignments" in the list' do - should_not_see_todo "John Doe assigned merge request ##{merge_request.iid}" - should_not_see_todo "John Doe assigned issue ##{issue.iid}" + should_not_see_todo "John Doe assigned you merge request !#{merge_request.iid}" + should_not_see_todo "John Doe assigned you issue ##{issue.iid}" end def should_see_todo(position, title, body, pending = true) |