spec/resolver_spec.rb in buildr-resolver-0.4.6 vs spec/resolver_spec.rb in buildr-resolver-0.4.7

- old
+ new

@@ -71,17 +71,18 @@ 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") + if File.exists?( "#{Buildr::Resolver.naether.local_repo_path}buildr-resolver/buildr-resolver/11.11/buildr-resolver-11.11.jar" ) + File.delete("#{Buildr::Resolver.naether.local_repo_path}buildr-resolver/buildr-resolver/11.11/buildr-resolver-11.11.jar") end 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" ) - Buildr::Resolver.install_artifact( "buildr-resolver:buildr-resolver:jar:11.11", Naether::Bootstrap.naether_jar, {:pom_path => "tmp/pom.xml"} ) - File.exists?( "#{Buildr::Resolver.naether.local_repo_path}/buildr-resolver/11.11/buildr-resolver-11.11.jar" ) + Buildr::Resolver.install( "buildr-resolver:buildr-resolver:jar:11.11", "tmp/pom.xml", Naether::Bootstrap.naether_jar ) + File.exists?( "#{Buildr::Resolver.naether.local_repo_path}/buildr-resolver/buildr-resolver/11.11/buildr-resolver-11.11.jar" ).should be_true + File.exists?( "#{Buildr::Resolver.naether.local_repo_path}/buildr-resolver/buildr-resolver/11.11/buildr-resolver-11.11.pom" ).should be_true end end end