spec/pom_spec.rb in maven-tools-0.34.1 vs spec/pom_spec.rb in maven-tools-0.34.2
- old
+ new
@@ -9,11 +9,11 @@
pom = Maven::Tools::POM.new( dir )
pom_xml = File.read( File.join( dir, 'pom.xml' ) )
pom_xml.sub!( /<!--(.|\n)*-->\n/, '' )
pom_xml.sub!( /<?.*?>\n/, '' )
pom_xml.sub!( /<project([^>]|\n)*>/, '<project>' )
-
- pom.to_s.must_equal pom_xml
+
+ pom.to_s.gsub( /#{File.expand_path( dir )}\//, '' ).must_equal pom_xml
end
end
end
end