From e1f99de9a5f4cfceac0f838be46896962d42dab5 Mon Sep 17 00:00:00 2001 From: Wolfgang Date: Fri, 22 Nov 2024 17:49:39 +0000 Subject: [PATCH] Update spec to match upstream response expectations --- spec/requests/api/v1/admin/domain_blocks_spec.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spec/requests/api/v1/admin/domain_blocks_spec.rb b/spec/requests/api/v1/admin/domain_blocks_spec.rb index d0a94b5d0c..0b01d04f9a 100644 --- a/spec/requests/api/v1/admin/domain_blocks_spec.rb +++ b/spec/requests/api/v1/admin/domain_blocks_spec.rb @@ -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