mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
16 lines
395 B
Ruby
16 lines
395 B
Ruby
|
# frozen_string_literal: false
|
||
|
require 'test/unit'
|
||
|
require 'mkmf'
|
||
|
|
||
|
class TestMkmf < Test::Unit::TestCase
|
||
|
class TestGlobal < TestMkmf
|
||
|
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
|
||
|
end
|