mirror of
https://github.com/mastodon/mastodon.git
synced 2025-01-06 10:25:09 +01:00
Update spec to match upstream response expectations
This commit is contained in:
parent
4a87f697a9
commit
e1f99de9a5
@ -225,7 +225,9 @@ RSpec.describe 'Domain Blocks' do
|
|||||||
subject
|
subject
|
||||||
|
|
||||||
expect(response).to have_http_status(422)
|
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
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user