Color support for Ruby Koans

This commit is contained in:
Rene Mendoza
2010-08-26 20:01:37 -05:00
committed by Jim Weirich
parent 06c47eb284
commit 1f6c0e03a5
3 changed files with 17 additions and 47 deletions

View File

@@ -1,3 +0,0 @@
Autotest.add_discovery do
"rubykoan" if File.exist? 'path_to_enlightenment.rb'
end

View File

@@ -1,24 +0,0 @@
require 'autotest'
class Autotest::Rubykoan < Autotest
def initialize
super
@exceptions = /\.txt|Rakefile|\.rdoc/
self.order = :alpha
self.add_mapping(/^about_.*rb$/) do |filename, _|
filename
end
end
def make_test_cmd files_to_test
"#{ruby} 'path_to_enlightenment.rb'"
end
# quiet test/unit chatter
def handle_results(results)
end
end