2018-08-19 14:36:51 +02:00
|
|
|
module Parfait
|
|
|
|
class ParfaitTest < MiniTest::Test
|
|
|
|
|
|
|
|
def setup
|
2019-02-08 22:03:23 +01:00
|
|
|
Parfait.boot!(Parfait.default_test_options)
|
2018-08-19 14:36:51 +02:00
|
|
|
@space = Parfait.object_space
|
|
|
|
end
|
|
|
|
def make_method
|
|
|
|
@obj = Parfait.object_space.get_type_by_class_name(:Object)
|
|
|
|
@args = Parfait::Type.for_hash( @obj.object_class , { bar: :Integer , foo: :Type})
|
|
|
|
@frame = Parfait::Type.for_hash( @obj.object_class , { local_bar: :Integer , local_foo: :Type})
|
|
|
|
@method = Parfait::CallableMethod.new( :meth , @obj , @args , @frame)
|
|
|
|
end
|
|
|
|
end
|
2019-02-09 11:44:35 +01:00
|
|
|
class BigParfaitTest < ParfaitTest
|
|
|
|
def setup
|
|
|
|
Parfait.boot!(Parfait.full_test_options)
|
|
|
|
@space = Parfait.object_space
|
|
|
|
end
|
|
|
|
end
|
2018-08-19 14:36:51 +02:00
|
|
|
end
|