rubyx/test/slot_machine/macro/helper.rb

18 lines
418 B
Ruby
Raw Normal View History

require_relative "../helper"
2019-10-03 20:07:55 +02:00
module SlotMachine
module Builtin
class BootTest < MiniTest::Test
include Preloader
def get_compiler(clazz , name)
compiler = RubyX::RubyXCompiler.new(RubyX.default_test_options)
2019-10-03 20:07:55 +02:00
coll = compiler.ruby_to_slot( get_preload("Space.main;#{clazz}.#{name}") )
@method = coll.method_compilers.last_compiler
@method
end
end
end
end