Permalink
Browse files

Updated Guardfile syntax

  • Loading branch information...
thibaudgg committed Mar 9, 2011
1 parent 9b1ea0d commit fe3cf0d4921c795c672d67bf1e58d933e8ed8974
Showing with 3 additions and 3 deletions.
  1. +3 −3 Guardfile
View
@@ -2,7 +2,7 @@
# More info at http://github.com/guard/guard#readme
guard 'rspec', :version => 2 do
- watch('^spec/(.*)_spec.rb')
- watch('^lib/(.*)\.rb') { |m| "spec/#{m[1]}_spec.rb" }
- watch('^spec/spec_helper.rb') { "spec" }
+ watch(%r(^spec/(.*)_spec.rb))
+ watch(%r(^lib/(.*)\.rb)) { |m| "spec/#{m[1]}_spec.rb" }
+ watch('spec/spec_helper.rb') { "spec" }
end

0 comments on commit fe3cf0d

Please sign in to comment.