added guard support

This commit is contained in:
Scott Davis 2011-12-09 20:42:31 -05:00
parent 2e6c224e80
commit 1280fce2be
2 changed files with 24 additions and 1 deletions

11
Gemfile
View File

@ -16,8 +16,19 @@ gem "ruby-prof", :platform => :mri_18
gem 'mocha' gem 'mocha'
gem 'timecop' gem 'timecop'
gem 'guard'
gem 'guard-test'
gem 'guard-cucumber'
gem 'diff-lcs', '~> 1.1.2' gem 'diff-lcs', '~> 1.1.2'
gem 'rake', '~> 0.9.2' gem 'rake', '~> 0.9.2'
#Warning becarful adding OS dependant gems to this file it will cause issues on the CI server #Warning becarful adding OS dependant gems to this file it will cause issues on the CI server
unless ENV["CI"]
gem 'rb-fsevent'
gem 'growl_notify'
end

12
Guardfile Normal file
View File

@ -0,0 +1,12 @@
guard :test do
watch(%r{^lib/(.+)\.rb$}) { |m| "test/#{m[1]}_test.rb" }
watch(%r{^test/.+_test\.rb$})
watch(%r{^test/units/.+_test\.rb$})
watch('test/test_helper.rb') { "test" }
end
guard :cucumber do
watch(%r{^features/.+\.feature$})
watch(%r{^features/support/.+$}) { 'features' }
watch(%r{^features/step_definitions/(.+)_steps\.rb$}) { |m| Dir[File.join("**/#{m[1]}.feature")][0] || 'features' }
end