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:
parent
2783ff283c
commit
5db552b200
1 changed files with 14 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue