From 4853f944ef45d49d7bda45ba4f7ca599b0fe3dd5 Mon Sep 17 00:00:00 2001 From: Torsten Ruger Date: Mon, 15 Jun 2015 08:26:56 +0300 Subject: [PATCH] add mini test for volatile functionality --- test/test_object.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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"