Sha256: 569d5f009738561d052094f98f8bb96b0b985a5a01d85db23ae78404eb56626e
Contents?: true
Size: 841 Bytes
Versions: 4
Compression:
Stored size: 841 Bytes
Contents
require_relative 'setup' require 'ruby_maven' require 'stringio' require 'maven/ruby/version' describe RubyMaven do it 'displays the version info' do Dir.chdir 'spec' do _, err = capture_io do RubyMaven.exec( '--version' ) end _(err).must_match /Polyglot Maven Extension 0.7/ xml = File.read('.mvn/extensions.xml') _(xml).must_equal "dummy\n" end end let :gem_name do v = Maven::Ruby::VERSION v += '-SNAPSHOT' if v =~ /[a-zA-Z]/ "pkg/ruby-maven-#{v}.gem" end it 'pack the gem' do FileUtils.rm_f gem_name out, _ = capture_subprocess_io do # need newer jruby version RubyMaven.exec( '-Dverbose', 'package', '-Djruby.version=9.3.0.0' ) end _(out).must_match /mvn -Dverbose package/ _(File.exist?( gem_name )).must_equal true end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
ruby-maven-3.9.2 | spec/ruby_maven_spec.rb |
ruby-maven-3.9.1 | spec/ruby_maven_spec.rb |
ruby-maven-3.9.0 | spec/ruby_maven_spec.rb |
ruby-maven-3.9.0.pre1 | spec/ruby_maven_spec.rb |