add mini test for volatile functionality
This commit is contained in:
parent
037f8d80d2
commit
4853f944ef
|
@ -3,9 +3,10 @@ class ObjectWithAttributes
|
||||||
@name = "some name"
|
@name = "some name"
|
||||||
@number = 1234
|
@number = 1234
|
||||||
end
|
end
|
||||||
attr_accessor :extra
|
attr_accessor :extra , :volotile
|
||||||
end
|
end
|
||||||
OBJECT_STRING = "ObjectWithAttributes(:name => 'some name', :number => 1234)"
|
OBJECT_STRING = "ObjectWithAttributes(:name => 'some name', :number => 1234)"
|
||||||
|
Sof::Volotile.add(ObjectWithAttributes , [:volotile])
|
||||||
|
|
||||||
class ObjectSof < MiniTest::Test
|
class ObjectSof < MiniTest::Test
|
||||||
include Checker
|
include Checker
|
||||||
|
@ -48,6 +49,11 @@ class ObjectSof < MiniTest::Test
|
||||||
@out = object
|
@out = object
|
||||||
check "ObjectWithAttributes(:name => 'some name', :number => 1234, :extra => Object())"
|
check "ObjectWithAttributes(:name => 'some name', :number => 1234, :extra => Object())"
|
||||||
end
|
end
|
||||||
|
def test_volotile
|
||||||
|
@out = ObjectWithAttributes.new
|
||||||
|
@out.volotile = 42
|
||||||
|
check "ObjectWithAttributes(:name => 'some name', :number => 1234)"
|
||||||
|
end
|
||||||
def test_class
|
def test_class
|
||||||
@out = ObjectWithAttributes
|
@out = ObjectWithAttributes
|
||||||
check "ObjectWithAttributes"
|
check "ObjectWithAttributes"
|
||||||
|
|
Loading…
Reference in New Issue