spec/resolver_spec.rb in buildr-resolver-0.4.4 vs spec/resolver_spec.rb in buildr-resolver-0.4.5
- old
+ new
@@ -25,11 +25,11 @@
Buildr.repositories.remote.last.should eql( { :url => URI.parse('http://test.com') } )
end
end
it "should resolve dependencies" do
- dependencies = Buildr::Resolver.resolve( ['ch.qos.logback:logback-classic:jar:0.9.24'] )
+ dependencies = Buildr::Resolver.resolve( ['ch.qos.logback:logback-classic:jar:0.9.24' => 'test'] )
dependencies.should eql ["ch.qos.logback:logback-classic:jar:0.9.24", "ch.qos.logback:logback-core:jar:0.9.24", "org.slf4j:slf4j-api:jar:1.6.0"]
end
it "should resolve dependencies with exclusions" do
@@ -63,12 +63,14 @@
Buildr::Resolver.resolve( ['ch.qos.logback:logback-classic:jar:0.9.24'] )
Buildr::Resolver.write_pom( "buildr-resolver:buildr-resolver:jar:45.45", "tmp/pom.xml" )
File.exists?( 'tmp/pom.xml' ).should be_true
deps = Buildr::Resolver.deps_from_pom( 'tmp/pom.xml' )
-
deps.should eql ["ch.qos.logback:logback-classic:jar:0.9.24", "ch.qos.logback:logback-core:jar:0.9.24", "org.slf4j:slf4j-api:jar:1.6.0"]
-
+
+ deps = Buildr::Resolver.resolve( 'tmp/pom.xml' )
+ deps.should eql ["ch.qos.logback:logback-classic:jar:0.9.24", "ch.qos.logback:logback-core:jar:0.9.24", "org.slf4j:slf4j-api:jar:1.6.0"]
+
end
it "should install a pom" do
if File.exists?( "#{Buildr::Resolver.naether.local_repo_path}buildr-resolver/11.11/buildr-resolver-11.11.jar" )
File.delete("#{Buildr::Resolver.naether.local_repo_path}buildr-resolver/11.11/buildr-resolver-11.11.jar")