Sha256: 23ea6148d7b8c1f62db46a48f60dd95f240b7d82d2a89deb9730b2f34364b72f
Contents?: true
Size: 676 Bytes
Versions: 4
Compression:
Stored size: 676 Bytes
Contents
require File.expand_path( 'spec_helper', File.dirname( __FILE__ ) ) require 'maven/tools/pom' describe Maven::Tools::POM do ( Dir[ File.join( File.dirname( __FILE__ ), 'gem*' ) ] + Dir[ File.join( File.dirname( __FILE__ ), 'pom*' ) ] ).each do |dir| if File.directory?( dir ) it "should convert #{dir}" do 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.gsub( /#{File.expand_path( dir )}\//, '' ).must_equal pom_xml end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
maven-tools-0.34.5 | spec/pom_spec.rb |
maven-tools-0.34.4 | spec/pom_spec.rb |
maven-tools-0.34.3 | spec/pom_spec.rb |
maven-tools-0.34.2 | spec/pom_spec.rb |