+
+ # image/jpeg is a format which we don't support, ActionController::UnknownFormat error is expected
+ # HTTP 406 Not acceptable would be the correct response error code. That's outside of our control though.
+ http_accept_format("image/jpeg")
+ get :index, :params => { :bbox => bbox }
+ assert_response :internal_server_error, "text/json should fail"