Sha256: 47424a1101bdee9aca7b9fc69fe5720352bc2e8307e5360992e9ec7082be1074

Contents?: true

Size: 1.19 KB

Versions: 5

Compression:

Stored size: 1.19 KB

Contents

# ----------------------------------------------------------------------------------------------------------------------
# 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, cmd: 'bundle exec rspec' 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

5 entries across 5 versions & 2 rubygems

Version Path
ndd-rspec-1.1.2 Guardfile
ndd-rspec-1.1.1 Guardfile
ndd-rspec-1.1.0 Guardfile
ndd-url_checker-0.1.1 Guardfile
ndd-rspec-1.0.0 Guardfile