Sha256: c057c3d658bab9a2d4d8b9a371a53c5896f2b1257c1e263bf2ac767780c0edce

Contents?: true

Size: 1 KB

Versions: 17

Compression:

Stored size: 1 KB

Contents

# 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

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
roo-2.10.1 Guardfile
roo-2.10.0 Guardfile
roo-2.9.0 Guardfile
roo-2.8.3 Guardfile
roo-2.8.2 Guardfile
roo-2.8.1 Guardfile
roo-2.8.0 Guardfile
roo-2.7.1 Guardfile
roo-2.7.0 Guardfile
roo-2.6.0 Guardfile
roo-2.5.1 Guardfile
roo-2.5.0 Guardfile
roo-2.4.0 Guardfile
roo-2.3.2 Guardfile
roo-2.3.1 Guardfile
roo-2.3.0 Guardfile
roo-2.2.0 Guardfile