Sha256: 1661672dcce79b5d65162da3e6e99ee8f1d49530bf530440d00a641f9f81a2c9
Contents?: true
Size: 1.14 KB
Versions: 1
Compression:
Stored size: 1.14 KB
Contents
# encoding: UTF-8 require 'spec_helper' describe 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") 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") 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") 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") PomGetter.get_pom(jar_path).should eq(File.read(pom_path)) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gjp-0.6.0 | spec/lib/get_pom_spec.rb |