Move the space instance to the parfait module

A better fit, maybe even a pattern for singletons
This commit is contained in:
Torsten Ruger
2016-12-30 14:10:49 +02:00
parent a00f6be3ba
commit f0350601a7
43 changed files with 85 additions and 85 deletions

View File

@ -17,7 +17,7 @@ class TestPositioning < MiniTest::Test
assert_equal 32 , list.padded_length
end
def test_type
type = Parfait::Type.new Parfait::Space.object_space.get_class_by_name(:Object)
type = Parfait::Type.new Parfait.object_space.get_class_by_name(:Object)
type.set_type( type )
assert_equal 32 , type.padded_length
end