mirror of
https://github.com/mastodon/mastodon.git
synced 2025-01-04 17:35:01 +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
|
||||
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user