small maintanance

This commit is contained in:
Torsten Ruger
2018-06-16 21:01:15 +03:00
parent 7543236f4f
commit c94f6eaa78
4 changed files with 21 additions and 130 deletions

View File

@ -13,6 +13,9 @@ module Mom
assert_equal Array , slot.slots.class
assert_equal :caller , slot.slots.first
end
def test_to_s
assert_equal "[message,caller]" , slot.to_s
end
def test_create_fail_none
assert_raises {slot(nil)}
end

View File

@ -18,5 +18,8 @@ module Mom
def test_def_const
assert_equal "hi" , @instruction.constant.to_string
end
def test_to_s
assert_equal "[StringConstant]" , @definition.to_s
end
end
end