Sha256: 0f5f776d0391dfb7722295f7cb222b0170f6ecee48ccd34ed3f0ad691c16a638
Contents?: true
Size: 780 Bytes
Versions: 1
Compression:
Stored size: 780 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 ) file = File.join( dir, 'pom.xml' ) file = File.join( File.dirname( dir ), 'pom.xml' ) unless File.exists? file pom_xml = File.read( file ) 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
maven-tools-1.0.0.rc2 | spec/pom_spec.rb |