Skip to content

Spork configurations

netzpirat edited this page Jul 23, 2011 · 2 revisions

Require step definitions

guard 'cucumber', :cli => "--drb --require features/step_definitions" 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
Clone this wiki locally