Permalink
Browse files

Update specs.watchr script

  • Loading branch information...
1 parent 8596b88 commit 772eafd543b45e853c4268f3ef04cbe91c3c5c4d @mynyml mynyml committed Feb 9, 2010
Showing with 4 additions and 4 deletions.
  1. +4 −4 specs.watchr
View
@@ -4,10 +4,10 @@
# --------------------------------------------------
# Rules
# --------------------------------------------------
-watch( '^test.*/test_.*\.rb' ) { |m| ruby( "%s" % m[0] ) }
-watch( '^lib/(.*)\.rb' ) { |m| ruby( "test/test_%s.rb" % m[1] ) }
-watch( '^lib/watchr/(.*)\.rb' ) { |m| ruby( "test/test_%s.rb" % m[1] ) }
-watch( '^lib/watchr/event_handlers/(.*)\.rb' ) { |m| ruby( "test/event_handlers/test_%s.rb" % m[1] ) }
+watch( '^test.*/test_.*\.rb' ) { |m| ruby m[0] }
+watch( '^lib/(.*)\.rb' ) { |m| ruby "test/test_#{m[1]}.rb" }
+watch( '^lib/watchr/(.*)\.rb' ) { |m| ruby "test/test_#{m[1]}.rb" }
+watch( '^lib/watchr/event_handlers/(.*)\.rb' ) { |m| ruby "test/event_handlers/test_#{m[1]}.rb" }
watch( '^test/test_helper\.rb' ) { ruby tests }
# --------------------------------------------------

0 comments on commit 772eafd

Please sign in to comment.