Permalink
Browse files

Merge pull request #70 from saterus/master

Switch from Autotest to Watchr
  • Loading branch information...
bostonaholic committed Feb 10, 2012
2 parents 8926a0d + 6af4597 commit bd94b445decfd677b21eb50ddaea6cee855d478a
Showing with 3 additions and 29 deletions.
  1. +0 −2 Rakefile
  2. +0 −3 src/autotest/discover.rb
  3. +0 −24 src/autotest/rubykoan.rb
  4. +3 −0 src/koans.watchr
View
2 Rakefile 100644 → 100755
@@ -42,8 +42,6 @@ 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|
View
@@ -1,3 +0,0 @@
-Autotest.add_discovery do
- "rubykoan" if File.exist? 'path_to_enlightenment.rb'
-end
View
@@ -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
-
View
@@ -0,0 +1,3 @@
+watch( '.*\.rb' ) do
+ system 'rake'
+end

0 comments on commit bd94b44

Please sign in to comment.