fix array with object

This commit is contained in:
Torsten Ruger
2014-08-15 14:59:38 +03:00
parent 85dad14cc8
commit 198e70b6bd
3 changed files with 31 additions and 6 deletions

View File

@ -24,4 +24,9 @@ class BasicSof < MiniTest::Test
out = Sof::Writer.write([true, 1234])
assert_equal "-true\n-1234\n" , out
end
def test_array_with_object
out = Sof::Writer.write([true, 1234 , ObjectWithAttributes.new])
assert_equal "-true\n-1234\n-ObjectWithAttributes(name: 'some object' ,number: 1234)\n\n" , out
end
end