Skip to content

Commit

Permalink
Errors have text/plain as the content type
Browse files Browse the repository at this point in the history
  • Loading branch information
tomhughes committed Nov 24, 2019
1 parent 1f4d48e commit c468af5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/controllers/api/notes_controller_test.rb
Expand Up @@ -747,11 +747,11 @@ def test_index_large_area

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
Expand Down

0 comments on commit c468af5

Please sign in to comment.