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

@ -34,7 +34,7 @@ RSpec.describe 'Accounts' do
subject
expect(response).to have_http_status(200)
expect(body_as_json).to match_array(expected_response)
expect(response.parsed_body).to match_array(expected_response)
end
context 'with limit param' do
@ -43,7 +43,7 @@ RSpec.describe 'Accounts' do
it 'returns only the requested number of accounts' do
subject
expect(body_as_json.size).to eq(params[:limit])
expect(response.parsed_body.size).to eq(params[:limit])
end
end
end