1
0
Fork 0
forked from gitea/nas
This commit is contained in:
KMY 2024-09-09 09:59:59 +09:00
parent 941e0f06ec
commit 5b1954f100
8 changed files with 21 additions and 21 deletions

View file

@ -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

View file

@ -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