Sha256: c4463d8ee04fd769fe95506edc38569525be979263633d0a10a4f04160dbc934
Contents?: true
Size: 571 Bytes
Versions: 3
Compression:
Stored size: 571 Bytes
Contents
require File.expand_path('../../fixtures/classes', __FILE__) ruby_version_is "1.9" do describe "Delegator#untrust" do before :each do @delegate = DelegateSpecs::Delegator.new("") end it "returns self" do @delegate.untrust.equal?(@delegate).should be_true end it "untrusts the delegator" do @delegate.__setobj__(nil) @delegate.untrust @delegate.untrusted?.should be_true end it "untrusts the delegated object" do @delegate.untrust @delegate.__getobj__.untrusted?.should be_true end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rubysl-delegate-2.0.1 | spec/delegator/untrust_spec.rb |
rubysl-delegate-1.0.0 | spec/delegator/untrust_spec.rb |
rubysl-delegate-2.0.0 | spec/delegator/untrust_spec.rb |