rubyx/test/parfait/helper.rb

18 lines
541 B
Ruby
Raw Normal View History

2018-04-26 11:31:37 +02:00
require_relative "../helper"
module Parfait
class ParfaitTest < MiniTest::Test
def setup
Parfait.boot!
2018-04-26 11:31:37 +02:00
@space = Parfait.object_space
end
2018-07-07 14:50:43 +02:00
def make_method
@obj = Parfait.object_space.get_class_by_name(:Object).instance_type
@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( @obj , :meth , @args , @frame)
end
2018-04-26 11:31:37 +02:00
end
end