1
0
Fork 0
mirror of https://github.com/ms-ati/docile synced 2023-03-27 23:21:52 -04:00

add test of earlier fix for FCB#instance_variables type on 1.8.x

This commit is contained in:
Marc Siegel 2013-07-25 11:29:34 -04:00
parent 2783ff283c
commit 5db552b200

View file

@ -217,4 +217,18 @@ describe Docile do
end
context "FallbackContextProxy#instance_variables" do
it "should preserve the class (String or Symbol) normally returned by current ruby version" do
@a = 1
expected_type = instance_variables.first.class
fcp = Docile::FallbackContextProxy.new(nil, nil)
fcp.instance_variable_set(:@foo, "foo")
fcp.instance_variables.first.class.should == expected_type
end
end
end