ruby/test/test_pathname.rb

5 строки
147 B
Ruby

require 'pathname'
require Pathname.new(__FILE__).dirname.join('inlinetest.rb')
target = __FILE__[/test_(.*\.rb)$/, 1]
InlineTest.loadtest(target)