diff options
author | Alfredo Sumaran <alfredo@gitlab.com> | 2016-04-27 22:50:24 +0300 |
---|---|---|
committer | Alfredo Sumaran <alfredo@gitlab.com> | 2016-04-27 22:52:51 +0300 |
commit | d2f898e7eadc2b4b3d2afb839818c5bc886ce62f (patch) | |
tree | 37baf71f8f0e4407f3e7303fc23d84594e5ae4c0 /spec/features/todos | |
parent | 2ec58d4a74c5805ef09b9472cecb3d6d9465a5f2 (diff) |
Fix Todos test
Diffstat (limited to 'spec/features/todos')
-rw-r--r-- | spec/features/todos/todos_spec.rb | 4 |
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 |