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

View File

@@ -8,6 +8,9 @@ gem "thor", ">= 0.14.0"
group :development do group :development do
gem "rake", ">= 0.8.7" gem "rake", ">= 0.8.7"
gem "rspec", "~> 2.10" gem "rspec", "~> 2.10"
gem "guard"
gem "guard-rspec"
gem "rb-readline", "~> 0.5.0"
gem "jeweler", ">= 1.6.2" gem "jeweler", ">= 1.6.2"
gem "rcov", :platforms => :mri_18 gem "rcov", :platforms => :mri_18
gem "simplecov", :platforms => :mri_19 gem "simplecov", :platforms => :mri_19

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