Sha256: 97b8900af76b80a3eff4f6df2dd46c79a751c9e36549dcd93fb745ac90bf640f
Contents?: true
Size: 1.17 KB
Versions: 5
Compression:
Stored size: 1.17 KB
Contents
# encoding: UTF-8 require 'spec_helper' describe Gjp::PomGetter do describe ".get_pom" do it "gets the pom from a directory" do dir_path = File.join("spec", "data", "commons-logging") pom_path = File.join(dir_path, "pom.xml") Gjp::PomGetter.get_pom(dir_path).should eq(File.read(pom_path)) end it "gets the pom from a jar" do dir_path = File.join("spec", "data", "commons-logging") pom_path = File.join(dir_path, "pom.xml") jar_path = File.join(dir_path, "commons-logging-1.1.1.jar") Gjp::PomGetter.get_pom(jar_path).should eq(File.read(pom_path)) end it "gets the pom from sha1" do dir_path = File.join("spec", "data", "antlr") pom_path = File.join(dir_path, "pom.xml") jar_path = File.join(dir_path, "antlr-2.7.2.jar") Gjp::PomGetter.get_pom(jar_path).should eq(File.read(pom_path)) end it "gets the pom from a heuristic" do dir_path = File.join("spec", "data", "nailgun") pom_path = File.join(dir_path, "pom.xml") jar_path = File.join(dir_path, "nailgun-0.7.1.jar") Gjp::PomGetter.get_pom(jar_path).should eq(File.read(pom_path)) end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
gjp-0.11.1 | spec/lib/pom_getter_spec.rb |
gjp-0.10.0 | spec/lib/get_pom_spec.rb |
gjp-0.9.0 | spec/lib/get_pom_spec.rb |
gjp-0.8.0 | spec/lib/get_pom_spec.rb |
gjp-0.7.0 | spec/lib/get_pom_spec.rb |