Sha256: 44e73a8d0c1bab2ce90b86a28f526fcde64c2eb67c72b7ffd34699c5528ca13a

Contents?: true

Size: 1.58 KB

Versions: 2

Compression:

Stored size: 1.58 KB

Contents

# ----------------------------------------------------------------------------------------------------------------------
# More info at https://github.com/guard/guard#readme
# ----------------------------------------------------------------------------------------------------------------------


# ----------------------------------------------------------------------------------------------------------------------
# bundler
# ----------------------------------------------------------------------------------------------------------------------

guard 'bundler' do
  watch('Gemfile')
end


# ----------------------------------------------------------------------------------------------------------------------
# spork (must be before rspec and cucumber)
# ----------------------------------------------------------------------------------------------------------------------

guard 'spork',
      :wait => 60 do

  watch('Gemfile')
  watch('Gemfile.lock')

  # ----- spec directory
  watch('spec/spec_helper.rb')
end


# ----------------------------------------------------------------------------------------------------------------------
# rspec
# ----------------------------------------------------------------------------------------------------------------------

guard 'rspec',
      :all_after_pass => false,
      :all_on_start => false,
      :cli => '--colour --drb --format documentation --tag focused' do

  # ----- lib directory
  watch(%r{^lib/(.+)\.rb$}) { |m| %W(spec/#{m[1]}_spec.rb) }

  # ----- spec directory
  watch(%r{^spec/.+_spec\.rb$})
  watch(%r{^spec/support/(.+)\.rb$}) { %W(spec) }
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ndd-rspec-0.1.1 Guardfile
ndd-rspec-0.1.0 Guardfile