# check boundary is sane and area within defined
# see /config/application.yml
begin
- bbox = BoundingBox.from_bbox_params(params)
- bbox.check_boundaries
- bbox.check_size
+ @bounds = BoundingBox.from_bbox_params(params)
+ @bounds.check_boundaries
+ @bounds.check_size
- rescue StandardError => err
- report_error(err.message)
+ rescue StandardError => e
+ report_error(e.message)
return
end
end
def check_not_found_id_version(id, version)
- get :version, :params => { :id => id, :version => version }
+ get :version, :params => { :id => id, :version => version }, :format => :xml
assert_response :not_found
- rescue ActionController::UrlGenerationError => ex
- assert_match(/No route matches/, ex.to_s)
+ rescue ActionController::UrlGenerationError => e
+ assert_match(/No route matches/, e.to_s)
end
##