Skip to content

Instantly share code, notes, and snippets.

@ezkl
Created March 14, 2012 17:41
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 ezkl/2038148 to your computer and use it in GitHub Desktop.
Save ezkl/2038148 to your computer and use it in GitHub Desktop.
guard 'spork', :wait => 60, :aggressive_kill => false, :notify_on_start => true do
watch('test/test_helper.rb') { :test_unit }
end
guard 'minitest', :drb => true do
watch(%r|^test/(.*)_spec\.rb|)
watch(%r|^lib/(.*)([^/]+)\.rb|) { |m| "test/#{m[1]}#{m[2]}_spec.rb" }
watch(%r|^test/test_helper\.rb|) { "test" }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment