зеркало из https://github.com/github/ruby.git
15 строки
379 B
Ruby
15 строки
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
|