Skip to content

Instantly share code, notes, and snippets.

@slyness
Created June 24, 2014 17:21
Show Gist options
  • Select an option

  • Save slyness/34baffd1b47ef8b0f177 to your computer and use it in GitHub Desktop.

Select an option

Save slyness/34baffd1b47ef8b0f177 to your computer and use it in GitHub Desktop.
# -*- mode: ruby -*-
# vi: set ft=ruby :
guard :rspec, spec_paths: ["test/unit"] do
watch(%r{^test/unit/.+_spec\.rb$})
watch(%r{^(libraries|definitions|providers|recipes|resources)/(.+)\.rb$}) { |m| "test/unit/#{m[1]}/#{m[2]}_spec.rb" }
watch("test/unit/spec_helper.rb") { "test/unit" }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment