Sha256: 5471d06c4d0b625f2a751c8b3144a71c0c149a69c1086bfdb4d87d3789a952c9

Contents?: true

Size: 1.62 KB

Versions: 2

Compression:

Stored size: 1.62 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 "#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 "#name" do
    it "reads artifact name" do
      pom.name.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 "#scm_connection" do
    it "reads the SCM connection address" do
      pom.scm_connection.should eq "scm:svn:http://svn.apache.org/repos/asf/commons/proper/" \
        "logging/tags/commons-logging-1.1.1"
    end
  end

  describe "#scm_url" do
    it "reads the SCM connection url" do
      pom.scm_url.should eq "http://svn.apache.org/repos/asf/commons/proper/logging/tags/commons-logging-1.1.1"
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
gjp-0.39.0 spec/lib/pom_spec.rb
gjp-0.38.0 spec/lib/pom_spec.rb