Sha256: f3db8e5a700f3513c9e8fa05080f67680c6f2bad5e5a7af451fa7c42c9eabcf4

Contents?: true

Size: 730 Bytes

Versions: 9

Compression:

Stored size: 730 Bytes

Contents

# encoding: utf-8

guard :bundler do
  watch('Gemfile')
end

guard :rspec, :all_on_start => false, :all_after_pass => false, :cli => '--fail-fast --seed 1' do
  # run all specs if the spec_helper or supporting files files are modified
  watch('spec/spec_helper.rb')                      { 'spec/unit' }
  watch(%r{\Aspec/(?:lib|support|shared)/.+\.rb\z}) { 'spec/unit' }

  # run unit specs if associated lib code is modified
  watch(%r{\Alib/(.+)\.rb\z})                                         { |m| Dir["spec/unit/#{m[1]}"] }
  watch("lib/#{File.basename(File.expand_path('../', __FILE__))}.rb") { 'spec/unit'                       }

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

Version data entries

9 entries across 9 versions & 3 rubygems

Version Path
majoun-0.0.4 Guardfile
majoun-0.0.3 Guardfile
majoun-0.0.2 Guardfile
orc-0.0.4 Guardfile
orc-0.0.3 Guardfile
orc-0.0.2 Guardfile
orc-0.0.1 Guardfile
majoun-0.0.1 Guardfile
subway-0.0.0 Guardfile