Fix POST /api/v1/admin/domain_allows
returning 200 when no domain is specified (#24958)
This commit is contained in:
@@ -128,5 +128,13 @@ RSpec.describe Api::V1::Admin::DomainAllowsController do
|
||||
expect(response).to have_http_status(422)
|
||||
end
|
||||
end
|
||||
|
||||
context 'when domain name is not specified' do
|
||||
it 'returns http unprocessable entity' do
|
||||
post :create
|
||||
|
||||
expect(response).to have_http_status(422)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user