Spork configurations

mattscilipoti edited this page Aug 24, 2011 · 2 revisions
Clone this wiki locally

Require step definitions

guard 'cucumber', :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