Sha256: 60dfe90affb1b1563a4010d021018a34c1bd9708b361a4e69b39568fd0f6d118
Contents?: true
Size: 915 Bytes
Versions: 1
Compression:
Stored size: 915 Bytes
Contents
require File.expand_path(File.join(File.dirname(__FILE__),'../spec_helper')) require 'lib/lock_jar/runtime' describe LockJar::Runtime do context "Singleton" do it "should set local repo" do LockJar::Runtime.instance.load( nil ) do jar 'junit:junit:4.10' end LockJar::Runtime.instance.current_resolver.naether.local_repo_path.should eql File.expand_path('~/.m2/repository') LockJar::Runtime.instance.load( nil, [], :local_repo => 'tmp/param_config' ) do local 'dsl_config' end LockJar::Runtime.instance.current_resolver.naether.local_repo_path.should eql File.expand_path('tmp/param_config') LockJar::Runtime.instance.load( nil ) do local 'tmp/dsl_config' end LockJar::Runtime.instance.current_resolver.naether.local_repo_path.should eql File.expand_path('tmp/dsl_config') end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
lock_jar-0.3.1 | spec/lock_jar/runtime_spec.rb |