Sha256: e42295fd41cd11e70f968d8483695d5294e2441b12bec50937de615b44867488

Contents?: true

Size: 1.91 KB

Versions: 17

Compression:

Stored size: 1.91 KB

Contents

# encoding: UTF-8

require 'spec_helper'

describe Gjp::Pom do
  let(:pom) { Gjp::Pom.new(File.join("spec", "data", "commons-logging", "pom.xml")) }

  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 "#description" do
    it "reads the description" do
      pom.description.should eq "Commons Logging is a thin adapter allowing configurable bridging to other,\n    well known logging systems."
    end
  end

  describe "#url" do
    it "reads the url" do
      pom.url.should eq "http://commons.apache.org/logging"
    end
  end

  describe "#license_name" do
    it "reads the license name" do
      pom.license_name.should eq ""
    end
  end

  describe "#runtime_dependency_ids" do
    it "reads the dependency maven ids" do
      pom.runtime_dependency_ids.should eq []
    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

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
gjp-0.29.0 spec/lib/pom_spec.rb
gjp-0.28.0 spec/lib/pom_spec.rb
gjp-0.27.0 spec/lib/pom_spec.rb
gjp-0.26.0 spec/lib/pom_spec.rb
gjp-0.25.0 spec/lib/pom_spec.rb
gjp-0.24.0 spec/lib/pom_spec.rb
gjp-0.23.0 spec/lib/pom_spec.rb
gjp-0.22.0 spec/lib/pom_spec.rb
gjp-0.21.0 spec/lib/pom_spec.rb
gjp-0.20.0 spec/lib/pom_spec.rb
gjp-0.19.0 spec/lib/pom_spec.rb
gjp-0.18.0 spec/lib/pom_spec.rb
gjp-0.17.1 spec/lib/pom_spec.rb
gjp-0.17.0 spec/lib/pom_spec.rb
gjp-0.16.1 spec/lib/pom_spec.rb
gjp-0.16.0 spec/lib/pom_spec.rb
gjp-0.15.7 spec/lib/pom_spec.rb