Sha256: e346afd39a3d4b1e5923b02cb7fc8e81420a14bed4b6e3f827d8e2ebae4e181a

Contents?: true

Size: 1004 Bytes

Versions: 8

Compression:

Stored size: 1004 Bytes

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]}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

8 entries across 8 versions & 3 rubygems

Version Path
roo-2.1.1 Guardfile
roo-2.1.0 Guardfile
roo-2.0.1 Guardfile
culturecode-roo-2.0.2 Guardfile
culturecode-roo-2.0.1 Guardfile
roo-2.0.0 Guardfile
roo-2.0.0beta1 Guardfile
roo-andyw8-2.0.0 Guardfile