Commit ef0cf7b4 authored by Marin Jankovski's avatar Marin Jankovski

Fix the api project ordering spec.

parent 8689ce1e
...@@ -51,7 +51,7 @@ describe API::API, api: true do ...@@ -51,7 +51,7 @@ describe API::API, api: true do
get api("/projects", user), { order_by: 'id', sort: 'desc'} get api("/projects", user), { order_by: 'id', sort: 'desc'}
response.status.should eq(200) response.status.should eq(200)
json_response.should be_an Array json_response.should be_an Array
json_response.first['id'].should eq(3) json_response.first['id'].should eq(project3.id)
end end
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment