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
1 changed files with 14 additions and 0 deletions

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