Debian Codegraph @

Guardfile

raw
1 # A sample Guardfile
2 # More info at https://github.com/guard/guard#readme
3
4 guard :minitest, test_folders: ['test'] do
5 watch(%r{^test/(.*)\/?test_(.*)\.rb$})
6 watch(%r{^lib/(.*/)?([^/]+)\.rb$}) { |m| "test/#{m[1].to_s.sub('roo/', '')}test_#{m[2]}.rb" }
7 watch(%r{^test/test_helper\.rb$}) { 'test' }
8 end
9
10 # Note: The cmd option is now required due to the increasing number of ways
11 # rspec may be run, below are examples of the most common uses.
12 # * bundler: 'bundle exec rspec'
13 # * bundler binstubs: 'bin/rspec'
14 # * spring: 'bin/rsspec' (This will use spring if running and you have
15 # installed the spring binstubs per the docs)
16 # * zeus: 'zeus rspec' (requires the server to be started separetly)
17 # * 'just' rspec: 'rspec'
18 guard :rspec, cmd: 'bundle exec rspec' do
19 watch(%r{^spec/.+_spec\.rb$})
20 watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
21 watch('spec/spec_helper.rb') { "spec" }
22 watch(%r{^spec/support/(.+)\.rb$}) { "spec" }
23 end