rubyx/test/parfait/helper.rb
Torsten Ruger a095515b0e new get_type_by_class_name helper for space
sorely needed, with 36 occurences replaced
2018-07-13 21:50:40 +03:00

18 lines
532 B
Ruby

require_relative "../helper"
module Parfait
class ParfaitTest < MiniTest::Test
def setup
Parfait.boot!
@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( @obj , :meth , @args , @frame)
end
end
end