зеркало из https://github.com/github/ruby.git
14 строки
351 B
Ruby
14 строки
351 B
Ruby
# frozen_string_literal: false
|
|
require 'test/unit'
|
|
require 'mkmf'
|
|
|
|
class TestMkmfGlobal < Test::Unit::TestCase
|
|
main = TOPLEVEL_BINDING.receiver
|
|
MakeMakefile.public_instance_methods(false).each do |m|
|
|
define_method(:"test_global_#{m}") do
|
|
assert_respond_to(main, [m, true])
|
|
assert_not_respond_to(main, [m, false])
|
|
end
|
|
end
|
|
end
|