Sha256: 75ecc8115f6987b999bff03b0f6cd54bf092cd34f6fcaa1858cdf6e128c1df14

Contents?: true

Size: 521 Bytes

Versions: 19

Compression:

Stored size: 521 Bytes

Contents

require "spec_helper"

describe Scorpion::Dependency::CapturedDependency do
  describe "#replicate" do
    it "does not hold reference to previously captured instance" do
      spec     = double Scorpion::Dependency::ClassDependency
      instance = double
      allow( spec ).to receive( :fetch ).and_return instance

      captured = Scorpion::Dependency::CapturedDependency.new( spec )
      captured.fetch( nil ) # Force instance to be resolved

      expect( captured.replicate.instance ).to be_nil
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
scorpion-ioc-1.0.10 spec/lib/scorpion/dependency/captured_dependency_spec.rb
scorpion-ioc-1.0.8 spec/lib/scorpion/dependency/captured_dependency_spec.rb
scorpion-ioc-1.0.7 spec/lib/scorpion/dependency/captured_dependency_spec.rb
scorpion-ioc-1.0.6 spec/lib/scorpion/dependency/captured_dependency_spec.rb
scorpion-ioc-1.0.4 spec/lib/scorpion/dependency/captured_dependency_spec.rb
scorpion-ioc-1.0.3 spec/lib/scorpion/dependency/captured_dependency_spec.rb
scorpion-ioc-1.0.2 spec/lib/scorpion/dependency/captured_dependency_spec.rb
scorpion-ioc-1.0.1 spec/lib/scorpion/dependency/captured_dependency_spec.rb
scorpion-ioc-1.0.0 spec/lib/scorpion/dependency/captured_dependency_spec.rb
scorpion-ioc-0.6.2 spec/lib/scorpion/dependency/captured_dependency_spec.rb
scorpion-ioc-0.6.1 spec/lib/scorpion/dependency/captured_dependency_spec.rb
scorpion-ioc-0.6.0 spec/lib/scorpion/dependency/captured_dependency_spec.rb
scorpion-ioc-0.5.23 spec/lib/scorpion/dependency/captured_dependency_spec.rb
scorpion-ioc-0.5.22 spec/lib/scorpion/dependency/captured_dependency_spec.rb
scorpion-ioc-0.5.21 spec/lib/scorpion/dependency/captured_dependency_spec.rb
scorpion-ioc-0.5.20 spec/lib/scorpion/dependency/captured_dependency_spec.rb
scorpion-ioc-0.5.19 spec/lib/scorpion/dependency/captured_dependency_spec.rb
scorpion-ioc-0.5.18 spec/lib/scorpion/dependency/captured_dependency_spec.rb
scorpion-ioc-0.5.17 spec/lib/scorpion/dependency/captured_dependency_spec.rb