diff --git a/test/sof.rb b/test/sof.rb index 93d56bcf..c8fe1a2d 100644 --- a/test/sof.rb +++ b/test/sof.rb @@ -96,4 +96,11 @@ class BasicSof < MiniTest::Test @out = Sof::Writer.write(ObjectWithAttributes) check "ObjectWithAttributes" end + def test_class_ref + object = ObjectWithAttributes.new + object.extra = ObjectWithAttributes + ar = [object , ObjectWithAttributes] + @out = Sof::Writer.write(ar) + check "-ObjectWithAttributes(:name => 'some name', :number => 1234, :extra => *1)\n-&1 ObjectWithAttributes" + end end \ No newline at end of file