Guardfile in pivot_table-0.5.0 vs Guardfile in pivot_table-1.0.0
- old
+ new
@@ -1,16 +1,8 @@
-# Note: The cmd option is now required due to the increasing number of ways
-# rspec may be run, below are examples of the most common uses.
-# * bundler: 'bundle exec rspec'
-# * bundler binstubs: 'bin/rspec'
-# * spring: 'bin/rsspec' (This will use spring if running and you have
-# installed the spring binstubs per the docs)
-# * zeus: 'zeus rspec' (requires the server to be started separetly)
-# * 'just' rspec: 'rspec'
-guard :rspec, cmd: 'bundle exec rspec' do
+guard :rspec, cmd: 'bundle exec rspec', all_on_start: true do
+ clearing :on
watch(%r{^spec/.+_spec\.rb$})
- watch(%r{^spec/support/(.+)\.rb$}) { "spec" }
- watch(%r{^lib/pivot_table.rb$}) { "spec" }
- watch(%r{^lib/pivot_table/(.+)\.rb$}) { "spec" }
- watch('spec/spec_helper.rb') { "spec" }
+ watch(%r{^spec/support/(.+)\.rb$}) { 'spec' }
+ watch(%r{^lib/pivot_table.rb$}) { 'spec' }
+ watch(%r{^lib/pivot_table/(.+)\.rb$}) { 'spec' }
+ watch('spec/spec_helper.rb') { 'spec' }
end
-