Errors have text/plain as the content type
This commit is contained in:
parent
1f4d48eaf3
commit
c468af5fbd
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue