X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/c76e60f052051a35fe7e9044969337cd88e5b1fd..5449cf4adcc1fad4b9f43426e6d3e4a8f65e6fbb:/test/functional/node_controller_test.rb diff --git a/test/functional/node_controller_test.rb b/test/functional/node_controller_test.rb index bc9ffa489..8d019bf79 100644 --- a/test/functional/node_controller_test.rb +++ b/test/functional/node_controller_test.rb @@ -276,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