|
|
|
@ -19,6 +19,12 @@ guard :rspec do |
|
|
|
|
watch(%r{^spec/acceptance/steps/(.+)_steps\.rb$}) { |m| Dir[File.join("**/#{m[1]}.feature")][0] || 'spec/acceptance' } |
|
|
|
|
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 |
|
|
|
|
|
|
|
|
|
guard :test do |
|
|
|
|
watch(%r{^lib/(.+)\.rb$}) { |m| "test/#{m[1]}_test.rb" } |
|
|
|
|
watch(%r{^test/.+_test\.rb$}) |
|
|
|
|