diff options
| author | 2017-06-12 03:37:11 -0400 | |
|---|---|---|
| committer | 2017-06-12 03:37:11 -0400 | |
| commit | 8280a21a23d44aa90177e2bc041d0b8dc8556f4b (patch) | |
| tree | dadef7ee085c0e990a5070bd41b6a5b98c97f4fd /Guardfile | |
Import Upstream version 2.7.1upstream/2.7.1
Diffstat (limited to 'Guardfile')
| -rw-r--r-- | Guardfile | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Guardfile b/Guardfile new file mode 100644 index 0000000..ecda496 --- /dev/null +++ b/Guardfile @@ -0,0 +1,23 @@ +# A sample Guardfile +# More info at https://github.com/guard/guard#readme + +guard :minitest, test_folders: ['test'] do + watch(%r{^test/(.*)\/?test_(.*)\.rb$}) + watch(%r{^lib/(.*/)?([^/]+)\.rb$}) { |m| "test/#{m[1].to_s.sub('roo/', '')}test_#{m[2]}.rb" } + watch(%r{^test/test_helper\.rb$}) { 'test' } +end + +# 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 + watch(%r{^spec/.+_spec\.rb$}) + watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" } + watch('spec/spec_helper.rb') { "spec" } + watch(%r{^spec/support/(.+)\.rb$}) { "spec" } +end |
