Skip to content

Instantly share code, notes, and snippets.

@blairanderson
Last active December 14, 2015 09:49
Show Gist options
  • Save blairanderson/5067457 to your computer and use it in GitHub Desktop.
Save blairanderson/5067457 to your computer and use it in GitHub Desktop.
My favorite guardfile
guard 'rspec', :cli => "--color --format nested --fail-fast --drb" do
watch(%r{^spec/.+_spec\.rb$})
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
watch(%r{^(.+)\.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