Fix test
This commit is contained in:
parent
941e0f06ec
commit
5b1954f100
8 changed files with 21 additions and 21 deletions
|
@ -22,7 +22,7 @@ RSpec.describe Api::V1::Circles::StatusesController do
|
|||
get :show, params: { circle_id: circle.id, limit: 5 }
|
||||
|
||||
expect(response).to have_http_status(200)
|
||||
json = body_as_json
|
||||
json = response.parsed_body
|
||||
expect(json.map { |item| item[:id].to_i }).to eq [status.id]
|
||||
end
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@ RSpec.describe Api::V1::ListsController do
|
|||
get :index
|
||||
expect(response).to have_http_status(200)
|
||||
|
||||
list_ids = body_as_json.pluck(:id)
|
||||
list_ids = response.parsed_body.pluck(:id)
|
||||
expect(list_ids.size).to eq 1
|
||||
expect(list_ids).to include list_id
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue