Sha256: 83b9cadf5dba90663cd515237d580be76a81cd7c04c44cce5bdf7d8257be56ec
Contents?: true
Size: 829 Bytes
Versions: 3
Compression:
Stored size: 829 Bytes
Contents
require 'spec/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 '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 'tmp/dsl_config' end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
lock_jar-0.2.2 | spec/lock_jar/runtime_spec.rb |
lock_jar-0.2.1 | spec/lock_jar/runtime_spec.rb |
lock_jar-0.2.0 | spec/lock_jar/runtime_spec.rb |