Sha256: 43ded4edd7a164ef62ba9cd1b8951056b94e8a7fe1f94204b1b208a07f882ac0

Contents?: true

Size: 820 Bytes

Versions: 14

Compression:

Stored size: 820 Bytes

Contents

require 'spec_helper'
require 'lock_jar/runtime'

describe LockJar::Runtime do
  context "Singleton" do
    it "should set local repo" do
      LockJar::Runtime.instance.load( nil, [], :resolve => true, :local_repo => TEST_REPO ) do
        jar 'junit:junit:4.10'
      end
      
      LockJar::Runtime.instance.current_resolver.naether.local_repo_path.should eql TEST_REPO
      
      LockJar::Runtime.instance.load( nil, [], :local_repo => PARAM_CONFIG ) do
        local_repo 'dsl_config'
      end
      
      LockJar::Runtime.instance.current_resolver.naether.local_repo_path.should eql PARAM_CONFIG
    
      LockJar::Runtime.instance.load( nil ) do
        local_repo DSL_CONFIG
      end
      
      LockJar::Runtime.instance.current_resolver.naether.local_repo_path.should eql DSL_CONFIG
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
lock_jar-0.13.0 spec/lock_jar/runtime_spec.rb
lock_jar-0.12.6 spec/lock_jar/runtime_spec.rb
lock_jar-0.12.5 spec/lock_jar/runtime_spec.rb
lock_jar-0.12.4 spec/lock_jar/runtime_spec.rb
lock_jar-0.12.3 spec/lock_jar/runtime_spec.rb
lock_jar-0.12.2 spec/lock_jar/runtime_spec.rb
lock_jar-0.12.1 spec/lock_jar/runtime_spec.rb
lock_jar-0.12.0 spec/lock_jar/runtime_spec.rb
lock_jar-0.10.5 spec/lock_jar/runtime_spec.rb
lock_jar-0.10.4 spec/lock_jar/runtime_spec.rb
lock_jar-0.10.3 spec/lock_jar/runtime_spec.rb
lock_jar-0.10.2 spec/lock_jar/runtime_spec.rb
lock_jar-0.8.0 spec/lock_jar/runtime_spec.rb
lock_jar-0.7.5 spec/lock_jar/runtime_spec.rb