Permalink
Browse files

Guard expects regular expression quoted in slashes or simply in %r{}

  • Loading branch information...
1 parent ff05219 commit a83b94998dabdd3acc2d462febadf6ec9d162a4e @kalbasit kalbasit committed Aug 12, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 Guardfile
View
@@ -1,5 +1,5 @@
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(%r{^spec/spec_helper.rb}) { "spec" }
end

0 comments on commit a83b949

Please sign in to comment.