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