Update spec to match upstream response expectations

This commit is contained in:
Wolfgang 2024-11-22 17:49:39 +00:00
parent 4a87f697a9
commit e1f99de9a5

View File

@ -225,7 +225,9 @@ RSpec.describe 'Domain Blocks' do
subject
expect(response).to have_http_status(422)
expect(body_as_json[:error]).to eq('Validation failed: Severity is not included in the list')
expect(response.content_type)
.to start_with('application/json')
expect(response.parsed_body[:error]).to eq('Validation failed: Severity is not included in the list')
end
end
end