Skip to content
This repository was archived by the owner on Nov 30, 2024. It is now read-only.

Commit 4521850

Browse files
committedJan 27, 2011
dev: use regexps in Guardfile
1 parent 33f4903 commit 4521850

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎Guardfile

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
guard 'rspec', :version => 2 do
2-
watch('^spec/(.*)_spec.rb')
3-
watch('^lib/(.*)\.rb') { |m| "spec/#{m[1]}_spec.rb" }
4-
watch('^spec/spec_helper.rb') { "spec" }
2+
watch(/^spec\/(.*)_spec.rb/)
3+
watch(/^lib\/(.*)\.rb/) { |m| "spec/#{m[1]}_spec.rb" }
4+
watch(/^spec\/spec_helper.rb/) { "spec" }
55
end

0 commit comments

Comments
 (0)