Sha256: fb6c02abdb4a1d2b5d03ae9d67d4ce7c1f8efc81049d72631d95419b001f5759
Contents?: true
Size: 1.16 KB
Versions: 8
Compression:
Stored size: 1.16 KB
Contents
require 'spec_helper' describe KPM::KillbillServerArtifact do before(:all) do @logger = Logger.new(STDOUT) @logger.level = Logger::INFO end # Takes about 7 minutes... it 'should be able to download and verify artifacts' do Dir.mktmpdir do |dir| info = KPM::KillbillServerArtifact.pull(@logger, KPM::BaseArtifact::KILLBILL_GROUP_ID, KPM::BaseArtifact::KILLBILL_ARTIFACT_ID, KPM::BaseArtifact::KILLBILL_PACKAGING, KPM::BaseArtifact::KILLBILL_CLASSIFIER, 'LATEST', dir) info[:file_name].should == "killbill-profiles-killbill-#{info[:version]}.war" info[:size].should == File.size(info[:file_path]) end end it 'should be able to list versions' do versions = KPM::KillbillServerArtifact.versions(KPM::BaseArtifact::KILLBILL_ARTIFACT_ID).to_a versions.size.should >= 2 versions[0].should == '0.11.10' versions[1].should == '0.11.11' end end
Version data entries
8 entries across 8 versions & 1 rubygems