Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix install artifact test

  • Loading branch information...
commit 2953af21b0cb323f0b157194d3ae8132d87d90cb 1 parent 001f0f9
@mguymon authored
Showing with 5 additions and 4 deletions.
  1. +5 −4 spec/resolver_spec.rb
View
9 spec/resolver_spec.rb
@@ -73,14 +73,15 @@
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
Please sign in to comment.
Something went wrong with that request. Please try again.