Sha256: 7c8f4935db9b2c627a62c23a4b88996dbcca8d2519edad7a5e864e9cb9d561ec

Contents?: true

Size: 645 Bytes

Versions: 1

Compression:

Stored size: 645 Bytes

Contents

group :red_green_refactor, halt_on_fail: true do
  guard :rspec, cmd: "rspec" do
    # run all specs if configuration is modified
    watch('Guardfile')           { 'spec' }
    watch('Gemfile.lock')        { 'spec' }
    watch('spec/spec_helper.rb') { 'spec' }

    # run all specs if supporting files files are modified
    watch(%r{\Aspec/(?:lib|support|shared)/.+\.rb\z}) { 'spec' }

    watch(%r{\Alib/(.+)\.rb\z}) { |_m| 'spec' }

    # run a spec if it is modified
    watch(%r{\Aspec/(?:unit|integration)/.+_spec\.rb\z})

    notification :tmux, display_message: true
  end

  guard :rubocop do
    watch(%r{\Alib/(.+)\.rb\z})
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rom-0.5.0 Guardfile