Skip to content
This repository
Browse code

Update specs.watchr script

  • Loading branch information...
commit 772eafd543b45e853c4268f3ef04cbe91c3c5c4d 1 parent 8596b88
Martin authored February 09, 2010

Showing 1 changed file with 4 additions and 4 deletions. Show diff stats Hide diff stats

  1. 8  specs.watchr
8  specs.watchr
@@ -4,10 +4,10 @@
4 4
 # --------------------------------------------------
5 5
 # Rules
6 6
 # --------------------------------------------------
7  
-watch( '^test.*/test_.*\.rb'                 )  { |m| ruby( "%s"                             % m[0] ) }
8  
-watch( '^lib/(.*)\.rb'                       )  { |m| ruby( "test/test_%s.rb"                % m[1] ) }
9  
-watch( '^lib/watchr/(.*)\.rb'                )  { |m| ruby( "test/test_%s.rb"                % m[1] ) }
10  
-watch( '^lib/watchr/event_handlers/(.*)\.rb' )  { |m| ruby( "test/event_handlers/test_%s.rb" % m[1] ) }
  7
+watch( '^test.*/test_.*\.rb'                 )  { |m| ruby  m[0] }
  8
+watch( '^lib/(.*)\.rb'                       )  { |m| ruby "test/test_#{m[1]}.rb" }
  9
+watch( '^lib/watchr/(.*)\.rb'                )  { |m| ruby "test/test_#{m[1]}.rb" }
  10
+watch( '^lib/watchr/event_handlers/(.*)\.rb' )  { |m| ruby "test/event_handlers/test_#{m[1]}.rb" }
11 11
 watch( '^test/test_helper\.rb'               )  { ruby tests }
12 12
 
13 13
 # --------------------------------------------------

0 notes on commit 772eafd

Please sign in to comment.
Something went wrong with that request. Please try again.