From 4e53cc83fe7741098fcf8c5b460af804f4c6dbc2 Mon Sep 17 00:00:00 2001 From: Fabio Rehm Date: Fri, 17 May 2013 18:49:33 -0300 Subject: [PATCH] Clean up Guardfile --- Guardfile | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/Guardfile b/Guardfile index 2858053..2af2e8f 100644 --- a/Guardfile +++ b/Guardfile @@ -1,18 +1,7 @@ -guard 'bundler' do - watch('Gemfile') - watch(/^.+\.gemspec/) -end - -guard 'ctags-bundler', :src_path => ["lib"] do - watch(/^(lib|spec\/support)\/.*\.rb$/) - watch('Gemfile.lock') -end - -guard 'rspec' do - watch(%r{^spec/.+_spec\.rb$}) +guard 'rspec', :spec_paths => ["spec/unit"] do + watch(%r{^spec/unit/.+_spec\.rb$}) watch(%r{^lib/vagrant-lxc/(.+)\.rb$}) { |m| "spec/unit/#{m[1]}_spec.rb" } watch('spec/unit_helper.rb') { "spec/unit" } - watch('spec/acceptance_helper.rb') { "spec/acceptance" } - watch('spec/spec_helper.rb') { "spec/" } - watch(%r{^spec/support/(.+)\.rb$}) { "spec/" } + watch('spec/spec_helper.rb') { "spec/unit" } + watch(%r{^spec/support/(.+)\.rb$}) { "spec/unit" } end