Sha256: b2934e1f500068b7ced83f672d6a8fbedec1d581bdfbef88c8d9301bb8a64eca

Contents?: true

Size: 582 Bytes

Versions: 3

Compression:

Stored size: 582 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*' ) ].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.must_equal pom_xml
      end
    end
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
maven-tools-0.33.4 spec/pom_spec.rb
maven-tools-0.33.3 spec/pom_spec.rb
maven-tools-0.33.2 spec/pom_spec.rb