Sha256: ac0491d0f145b364a439c6b4da5691b8dfd57438be4d441544c0275345ce7b2c
Contents?: true
Size: 1.54 KB
Versions: 7
Compression:
Stored size: 1.54 KB
Contents
# encoding: UTF-8 require 'spec_helper' describe Gjp::Pom do [ File.join("spec", "data", "commons-logging", "pom.xml"), 'http://search.maven.org/remotecontent?filepath=commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.pom'].each do |loc| let(:pom) { Gjp::Pom.new(loc) } describe "#connection_address" do it "reads the SCM connection address" do pom.connection_address.should eq "svn:http://svn.apache.org/repos/asf/commons/proper/logging/tags/commons-logging-1.1.1" end it "reads the SCM connection address from a remote repository" do pom.connection_address.should eq "svn:http://svn.apache.org/repos/asf/commons/proper/logging/tags/commons-logging-1.1.1" end end describe "#group_id" do it "reads the group id" do pom.group_id.should eq "commons-logging" end end describe "#artifact_id" do it "reads the artifact id" do pom.artifact_id.should eq "commons-logging" end end describe "#version" do it "reads the version" do pom.version.should eq "1.1.1" end end describe "#parent_group_id" do it "reads the parent's group id" do pom.parent_group_id.should eq "org.apache.commons" end end describe "#parent_artifact_id" do it "reads the parent's artifact id" do pom.parent_artifact_id.should eq "commons-parent" end end describe "#parent_version" do it "reads the parent's version" do pom.parent_version.should eq "5" end end end end
Version data entries
7 entries across 7 versions & 1 rubygems