Sha256: e7396ec32c02ad5991888acbd1f7f767daca2647db2aab5e0174cbfbe0332888

Contents?: true

Size: 838 Bytes

Versions: 16

Compression:

Stored size: 838 Bytes

Contents

guard :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' }

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

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

  notification :tmux, :display_message => true
end

Version data entries

16 entries across 16 versions & 4 rubygems

Version Path
rom-mapper-0.5.1 Guardfile
rom-mapper-0.5.0 Guardfile
rom-mapper-0.5.0.rc1 Guardfile
rom-mapper-0.5.0.beta1 Guardfile
rom-mapper-0.4.0 Guardfile
rom-mapper-0.3.0 Guardfile
rom-mapper-0.3.0.rc1 Guardfile
rom-mapper-0.3.0.beta1 Guardfile
rom-mapper-0.2.0 Guardfile
rom-0.2.0 Guardfile
charlatan-0.1.0 Guardfile
charlatan-0.0.1 Guardfile
rom-mapper-0.1.1 Guardfile
rom-session-0.1.1 Guardfile
rom-session-0.1.0 Guardfile
rom-mapper-0.1.0 Guardfile