From: Tom Hughes Date: Thu, 5 Sep 2019 20:23:49 +0000 (+0100) Subject: Errors have text/plain as the content type X-Git-Tag: live~2950^2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/c468af5fbdd293d8bf6c1415b08560274e7ac45a Errors have text/plain as the content type --- diff --git a/test/controllers/api/notes_controller_test.rb b/test/controllers/api/notes_controller_test.rb index 2557a353b..0e4a6f357 100644 --- a/test/controllers/api/notes_controller_test.rb +++ b/test/controllers/api/notes_controller_test.rb @@ -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