Skip to content

Instantly share code, notes, and snippets.

@nicopaez
Last active August 29, 2015 14:00
Show Gist options
  • Save nicopaez/11348472 to your computer and use it in GitHub Desktop.
Save nicopaez/11348472 to your computer and use it in GitHub Desktop.
rspec & guard
source 'https://rubygems.org'
ruby '1.9.3'
gem 'rspec'
gem 'guard'
gem 'guard-rspec'
guard :rspec do
watch(%r{^spec/.+_spec\.rb$})
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
watch('spec/spec_helper.rb') { "spec" }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment