Errors have text/plain as the content type

This commit is contained in:
Tom Hughes 2019-09-05 21:23:49 +01:00
parent 1f4d48eaf3
commit c468af5fbd

View file

@ -747,11 +747,11 @@ module Api
get :index, :params => { :bbox => "-10,-10,12,12", :format => :json }
assert_response :bad_request
assert_equal "application/json", @response.media_type
assert_equal "text/plain", @response.media_type
get :index, :params => { :l => "-10", :b => "-10", :r => "12", :t => "12", :format => :json }
assert_response :bad_request
assert_equal "application/json", @response.media_type
assert_equal "text/plain", @response.media_type
end
def test_index_closed