diff --git a/test/test_object.rb b/test/test_object.rb index 77e3c71..1de0400 100644 --- a/test/test_object.rb +++ b/test/test_object.rb @@ -3,9 +3,10 @@ class ObjectWithAttributes @name = "some name" @number = 1234 end - attr_accessor :extra + attr_accessor :extra , :volotile end OBJECT_STRING = "ObjectWithAttributes(:name => 'some name', :number => 1234)" +Sof::Volotile.add(ObjectWithAttributes , [:volotile]) class ObjectSof < MiniTest::Test include Checker @@ -48,6 +49,11 @@ class ObjectSof < MiniTest::Test @out = object check "ObjectWithAttributes(:name => 'some name', :number => 1234, :extra => Object())" end + def test_volotile + @out = ObjectWithAttributes.new + @out.volotile = 42 + check "ObjectWithAttributes(:name => 'some name', :number => 1234)" + end def test_class @out = ObjectWithAttributes check "ObjectWithAttributes"