Added guard to project to run tests automatically.

This commit is contained in:
Jeremy Cook
2013-12-27 16:59:03 -05:00
parent 30a3bbb198
commit c432b27c92
2 changed files with 12 additions and 0 deletions

9
Guardfile Normal file
View File

@@ -0,0 +1,9 @@
guard :rspec do
watch(%r{^spec/.+_spec\.rb$})
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
watch(%r{^lib/homesick/.*\.rb}) { "spec" }
watch('spec/spec_helper.rb') { "spec" }
notification :tmux, display_message: true
end