summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Sumaran <alfredo@gitlab.com>2016-04-27 14:50:24 -0500
committerAlfredo Sumaran <alfredo@gitlab.com>2016-04-27 14:52:51 -0500
commitd2f898e7eadc2b4b3d2afb839818c5bc886ce62f (patch)
tree37baf71f8f0e4407f3e7303fc23d84594e5ae4c0
parent2ec58d4a74c5805ef09b9472cecb3d6d9465a5f2 (diff)
downloadgitlab-ce-todos-tests-fix.tar.gz
Fix Todos testtodos-tests-fix
-rw-r--r--spec/features/todos/todos_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/features/todos/todos_spec.rb b/spec/features/todos/todos_spec.rb
index 248e004ba6e..3354f529295 100644
--- a/spec/features/todos/todos_spec.rb
+++ b/spec/features/todos/todos_spec.rb
@@ -68,12 +68,12 @@ describe 'Dashboard Todos', feature: true do
describe 'completing last todo from last page', js: true do
it 'redirects to the previous page' do
visit dashboard_todos_path(page: 2)
- expect(page).to have_content(Todo.first.body)
+ expect(page).to have_css("#todo_#{Todo.last.id}")
click_link('Done')
expect(current_path).to eq dashboard_todos_path
- expect(page).to have_content(Todo.last.body)
+ expect(page).to have_css("#todo_#{Todo.first.id}")
end
end
end