ruby/test/ripper/test_files_test_2.rb

10 строки
246 B
Ruby

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