summaryrefslogtreecommitdiff
path: root/spec/requests/api/todos_spec.rb
diff options
context:
space:
mode:
authorRobert Schilling <rschilling@student.tugraz.at>2016-07-19 13:05:56 +0200
committerRobert Schilling <rschilling@student.tugraz.at>2016-07-19 13:09:57 +0200
commitbaa9ce848070e76ebec12322f938ac8ec7178cf0 (patch)
tree2b752ca64459af860f621a2f612b3f4dcba777ab /spec/requests/api/todos_spec.rb
parent50abec8ca36c5cbdb1f7878b3ac956211fc67d3d (diff)
downloadgitlab-ce-baa9ce848070e76ebec12322f938ac8ec7178cf0.tar.gz
Return the number of marked todosapi-delete-todos
Diffstat (limited to 'spec/requests/api/todos_spec.rb')
-rw-r--r--spec/requests/api/todos_spec.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/spec/requests/api/todos_spec.rb b/spec/requests/api/todos_spec.rb
index 92a4fa216cd..3ccd0af652f 100644
--- a/spec/requests/api/todos_spec.rb
+++ b/spec/requests/api/todos_spec.rb
@@ -134,8 +134,7 @@ describe API::Todos, api: true do
delete api('/todos', john_doe)
expect(response.status).to eq(200)
- expect(json_response).to be_an Array
- expect(json_response.length).to eq(3)
+ expect(response.body).to eq('3')
expect(pending_1.reload).to be_done
expect(pending_2.reload).to be_done
expect(pending_3.reload).to be_done