Skip to content

Instantly share code, notes, and snippets.

@willrjmarshall
Created October 13, 2011 00:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save willrjmarshall/1283062 to your computer and use it in GitHub Desktop.
Save willrjmarshall/1283062 to your computer and use it in GitHub Desktop.
group 'cukes' do
guard 'cucumber', :all_on_start => false, :all_after_pass => false, :cli => "--drb --require features/" 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 'spork' do
watch('config/application.rb')
watch('config/environment.rb')
watch(%r{^config/environments/.*\.rb$})
watch(%r{^config/initializers/.*\.rb$})
watch('spec/spec_helper.rb')
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment