rubyx/test/mom/test_builtin.rb
Torsten Rüger b13c19def3 cache booted functions
remove more redundant parfait boots
2019-09-07 17:56:06 +03:00

24 lines
545 B
Ruby

require_relative "helper"
module Mom
class TestBuiltinFunction < MiniTest::Test
def setup
Parfait.boot!(Parfait.default_test_options)
@functions = Builtin.boot_functions({})
end
def test_has_boot_function
assert @functions
end
def test_boot_function_type
assert_equal Array, @functions.class
end
def test_boot_function_length
assert_equal 21, @functions.length
end
def test_boot_function_first
assert_equal Mom::MethodCompiler, @functions.first.class
end
end
end