mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
14 lines
379 B
Ruby
14 lines
379 B
Ruby
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
|