Sha256: cca0e20b35fc1c0153c3c18be4b1ab8762b6415fddf8208d196f9d484259d1ae
Contents?: true
Size: 1.47 KB
Versions: 6
Compression:
Stored size: 1.47 KB
Contents
#TODO get 'spec' into $LOAD by minispec-maven-plugin load File.expand_path(File.join('spec', 'setup.rb')) require 'jbundler/pom' describe JBundler::Pom do it 'should create jar pom without deps' do pom = JBundler::Pom.new("first", "1", []) File.read(pom.file).must_equal "<?xml version=\"1.0\" ?><project><modelVersion>4.0.0</modelVersion><groupId>ruby.bundler</groupId><artifactId>first</artifactId><version>1</version><dependencies></dependencies></project>" pom.coordinate.must_equal "ruby.bundler:first:jar:1" end it 'should create pom-pom without deps' do pom = JBundler::Pom.new("first", "1", [], 'pom') File.read(pom.file).must_equal "<?xml version=\"1.0\" ?><project><modelVersion>4.0.0</modelVersion><groupId>ruby.bundler</groupId><artifactId>first</artifactId><version>1</version><packaging>pom</packaging><dependencies></dependencies></project>" pom.coordinate.must_equal "ruby.bundler:first:pom:1" end it 'should create jar pom without deps' do pom = JBundler::Pom.new("second", "1", ["jar \"org.jruby:jruby-core\", '~>1.7.0'"]) File.read(pom.file).must_equal "<?xml version=\"1.0\" ?><project><modelVersion>4.0.0</modelVersion><groupId>ruby.bundler</groupId><artifactId>second</artifactId><version>1</version><dependencies><dependency><groupId>org.jruby</groupId><artifactId>jruby-core</artifactId><version>[1.7.0,1.7.99999]</version></dependency></dependencies></project>" pom.coordinate.must_equal "ruby.bundler:second:jar:1" end end
Version data entries
6 entries across 6 versions & 1 rubygems