Added autotest support to RubyKoans

This commit is contained in:
Rene Mendoza
2010-08-26 20:14:26 -05:00
committed by Jim Weirich
parent 1f6c0e03a5
commit ed2ef0f439
3 changed files with 29 additions and 0 deletions

View File

@@ -29,6 +29,8 @@ module Koans
def Koans.make_koan_file(infile, outfile)
if infile =~ /edgecase/
cp infile, outfile
elsif infile =~ /autotest/
cp_r infile, outfile
else
open(infile) do |ins|
open(outfile, "w") do |outs|