basic_authorization private_user.email, "test"
# setup a simple XML node
- xml_doc = private_node.to_xml
+ xml_doc = xml_for_node(private_node)
xml_node = xml_doc.find("//osm/node").first
nodeid = private_node.id
# setup a simple XML node
- xml_doc = node.to_xml
+ xml_doc = xml_for_node(node)
xml_node = xml_doc.find("//osm/node").first
nodeid = node.id
def check_not_found_id_version(id, version)
get :version, :params => { :id => id, :version => version }
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
##