Merge pull request #72 from aspiers/guard-recipes

Guard recipes
This commit is contained in:
Adam Spiers 2014-04-04 17:53:13 +01:00
commit 3f13c02a65
1 changed files with 3 additions and 2 deletions

View File

@ -23,14 +23,15 @@ group :rspec do
watch(%r{^Gemfile$}) { all_specs }
watch(%r{^Gemfile.lock$}) { all_specs }
watch(%r{^spec/spec_helper\.rb$}) { all_specs }
watch(%r{^spec/helpers/(.+)\.rb$}) { all_specs }
watch(%r{^spec/fixtures/(.+)\.rb$}) { all_specs }
watch(%r{^spec/helpers/.+\.rb$}) { all_specs }
watch(%r{^spec/fixtures/.+\.rb$}) { all_specs }
watch(%r{^libraries/pacemaker\.rb$}) { all_specs }
watch(%r{^libraries/(.*mixin.*)\.rb$}) { library_specs }
watch(%r{^(spec/.+_spec\.rb)$}) { |m| reload m[1] }
watch(%r{^libraries/(.+)\.rb$}) { |m|
reload "spec/libraries/#{m[1]}_spec.rb"
}
watch(%r{^recipes/.+\.rb$}) { provider_specs }
watch(%r{^providers/common\.rb$}) { provider_specs }
watch(%r{^providers/(.*mixin.*)\.rb$}) { provider_specs }
watch(%r{^(?:resources|providers)/(.+)\.rb$}) { |m|