Sha256: ccdcd68252690b6350e216c52cfaebbabd432b70e42ff21fb4781d60b609386f
Contents?: true
Size: 542 Bytes
Versions: 3
Compression:
Stored size: 542 Bytes
Contents
require File.expand_path('../../fixtures/classes', __FILE__) describe "Delegator#taint" do before :each do @delegate = DelegateSpecs::Delegator.new("") end it "returns self" do @delegate.taint.equal?(@delegate).should be_true end it "taints the delegator" do @delegate.__setobj__(nil) @delegate.taint @delegate.tainted?.should be_true end ruby_bug "redmine:2223", "1.8" do it "taints the delegated object" do @delegate.taint @delegate.__getobj__.tainted?.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/taint_spec.rb |
rubysl-delegate-1.0.0 | spec/delegator/taint_spec.rb |
rubysl-delegate-2.0.0 | spec/delegator/taint_spec.rb |