1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/test/ripper/test_files_lib.rb

15 lines
379 B
Ruby
Raw Normal View History

require_relative 'assert_parse_files.rb'
class TestRipper::Generic
%w[lib].each do |dir|
define_method("test_parse_files:#{dir}") do
assert_parse_files(dir, "*.rb")
end
Dir["#{SRCDIR}/#{dir}/*/"].each do |dir|
dir = dir[(SRCDIR.length+1)..-2]
define_method("test_parse_files:#{dir}") do
assert_parse_files(dir)
end
end
end
end