Permalink
Browse files

dev: use regexps in Guardfile

  • Loading branch information...
1 parent 33f4903 commit 452185031d9ef9292773f93b601622334f6bc350 @dchelimsky dchelimsky committed Jan 27, 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(/^spec\/(.*)_spec.rb/)
+ watch(/^lib\/(.*)\.rb/) { |m| "spec/#{m[1]}_spec.rb" }
+ watch(/^spec\/spec_helper.rb/) { "spec" }
end

0 comments on commit 4521850

Please sign in to comment.