X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/e989b1a880f79fd1835a44d16de115a778f890af..663416ae0bdca040f23cf867c43b94d0c1e2b45b:/test/functional/node_controller_test.rb diff --git a/test/functional/node_controller_test.rb b/test/functional/node_controller_test.rb index 2289953fe..8d019bf79 100644 --- a/test/functional/node_controller_test.rb +++ b/test/functional/node_controller_test.rb @@ -1,5 +1,4 @@ require File.dirname(__FILE__) + '/../test_helper' -require 'node_controller' class NodeControllerTest < ActionController::TestCase api_fixtures @@ -277,8 +276,7 @@ class NodeControllerTest < ActionController::TestCase ## # parse some xml def xml_parse(xml) - parser = XML::Parser.new - parser.string = xml + parser = XML::Parser.string(xml) parser.parse end end