added guard support
This commit is contained in:
parent
2e6c224e80
commit
1280fce2be
11
Gemfile
11
Gemfile
@ -16,8 +16,19 @@ gem "ruby-prof", :platform => :mri_18
|
||||
|
||||
gem 'mocha'
|
||||
gem 'timecop'
|
||||
|
||||
gem 'guard'
|
||||
gem 'guard-test'
|
||||
gem 'guard-cucumber'
|
||||
|
||||
gem 'diff-lcs', '~> 1.1.2'
|
||||
|
||||
gem 'rake', '~> 0.9.2'
|
||||
|
||||
#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
12
Guardfile
Normal 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
|
Loading…
Reference in New Issue
Block a user