]> git.openstreetmap.org Git - rails.git/blobdiff - test/functional/relation_controller_test.rb
Merge api06 branch to trunk.
[rails.git] / test / functional / relation_controller_test.rb
index 4ace316a4e96ab479abf152b9a669d1e4fa13d5f..d2dacd79c2408e15f2f0c53c2498b6f0ea226c42 100644 (file)
@@ -4,14 +4,6 @@ require 'relation_controller'
 class RelationControllerTest < ActionController::TestCase
   api_fixtures
 
-  def basic_authorization(user, pass)
-    @request.env["HTTP_AUTHORIZATION"] = "Basic %s" % Base64.encode64("#{user}:#{pass}")
-  end
-
-  def content(c)
-    @request.env["RAW_POST_DATA"] = c.to_s
-  end
-
   # -------------------------------------
   # Test reading relations.
   # -------------------------------------
@@ -540,8 +532,7 @@ OSM
   ##
   # parse some xml
   def xml_parse(xml)
-    parser = XML::Parser.new
-    parser.string = xml
+    parser = XML::Parser.string(xml)
     parser.parse
   end
 end