Sha256: 415b044099b8c0a6408def307c3adf4ec362e25588a7d5f30e60b55a4fd6495f

Contents?: true

Size: 690 Bytes

Versions: 3

Compression:

Stored size: 690 Bytes

Contents

group :tests do
  # Run code quality checks against all source
  guard :rubocop, all_on_start: false do
    watch(%r{^spec/.+\.rb$})
    watch(%r{^lib/.+\.rb$})
    watch(%r{^.+\.(rb|ru)$})
    watch 'Gemfile'
    watch 'Rakefile'
  end

  group :unit do
    guard :rspec, failed_mode: :none do
      watch(%r{^spec/unit/.+_spec\.rb$})
      watch(%r{^lib/(.+)\.rb$})     { |m| "spec/unit/lib/#{m[1]}_spec.rb" }
      watch('spec/spec_helper.rb')
    end
  end

  group :integration do
    guard :rspec do
      watch(%r{^spec/integration/.+_spec\.rb$})
      watch(%r{^lib/(.+)\.rb$})     { |m| "spec/integration/lib/#{m[1]}_spec.rb" }
      watch('spec/spec_helper.rb')
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
begin-1.1.1 lib/templates/Guardfile.tt
begin-1.1.0 lib/templates/Guardfile.tt
begin-1.0.1 lib/templates/Guardfile.tt