]> git.openstreetmap.org Git - rails.git/commitdiff
Avoid noise on console when running tests
authorTom Hughes <tom@compton.nu>
Wed, 28 Sep 2011 21:43:54 +0000 (22:43 +0100)
committerTom Hughes <tom@compton.nu>
Mon, 14 Nov 2011 09:42:53 +0000 (09:42 +0000)
app/models/changeset.rb

index d58d91bb305480f0601e2edabfb1c3ab52b9474b..0a0b6462bc30db8ef691c1600de9647a2941085b 100644 (file)
@@ -54,7 +54,7 @@ class Changeset < ActiveRecord::Base
 
   def self.from_xml(xml, create=false)
     begin
-      p = XML::Parser.string(xml)
+      p = XML::Parser.string(xml, :options => XML::Parser::Options::NOERROR)
       doc = p.parse
 
       doc.find('//osm/changeset').each do |pt|