move from new_object to normal new

This commit is contained in:
Torsten Ruger
2015-07-20 13:01:15 +03:00
parent 08e1852e5f
commit 2c1c38716b
13 changed files with 33 additions and 21 deletions

View File

@ -34,4 +34,15 @@ class TestSpace < MiniTest::Test
# there is a 5.times in space, but one Message gets created before
assert_equal 5 + 1 , all.length
end
def test_message_layout
mess = @machine.space.first_message
one_way = mess.get_layout
assert one_way
assert mess.instance_variable_defined :next_message
other_way = mess.get_instance_variable :layout
#puts mess.get_instance_variables
# assert other_way
# assert_equal one_way , other_way , "not same "
end
end