remove to_mom from ruby_to_vool

must have slipped in
affects mosty tests
This commit is contained in:
Torsten Ruger
2018-06-29 14:57:48 +03:00
parent 6bd01fd55f
commit 5036dd68df
3 changed files with 25 additions and 16 deletions

View File

@ -9,7 +9,8 @@ module Vool
end
def compile_in_test input
VoolCompiler.ruby_to_vool in_Test(input)
vool = VoolCompiler.ruby_to_vool in_Test(input)
vool.to_mom(nil)
itest = Parfait.object_space.get_class_by_name(:Test)
assert itest
itest
@ -38,14 +39,16 @@ module Vool
end
def test_creates_class_without_deriviation
VoolCompiler.ruby_to_vool "class Testing ; end"
vool = VoolCompiler.ruby_to_vool "class Testing ; end"
vool.to_mom(nil)
clazz = Parfait.object_space.get_class_by_name(:Testing)
assert clazz , "No classes created"
assert_equal :Object , clazz.super_class_name
end
def test_creates_class_with_deriviation
VoolCompiler.ruby_to_vool "class Test2 < List ;end"
vool = VoolCompiler.ruby_to_vool "class Test2 < List ;end"
vool.to_mom(nil)
clazz = Parfait.object_space.get_class_by_name(:Test2)
assert clazz, "No classes created"
assert_equal :List , clazz.super_class_name