Skip to content

Instantly share code, notes, and snippets.

@zerowidth
Created August 31, 2011 16:53
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 zerowidth/1184044 to your computer and use it in GitHub Desktop.
Save zerowidth/1184044 to your computer and use it in GitHub Desktop.
# simple guardfile for vital testing workshop.
#
# $ gem install guard guard-rspec growl_notify
#
# put your code in lib/thing.rb
# and the specs in spec/thing_spec.rb
#
# then
#
# $ guard
#
guard 'rspec', :version => 2, :cli => "--colour --format doc" do
watch(%r{^spec/.+_spec\.rb$})
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment