free_mutant/Guardfile
Markus Schirp 9c1d9cfa58 Switch to rspec-2
* One of the main reasons behind mutant was to get a rid of rspec-1.3
  in my toolchain.
* Remove most of mri specific stuff from Gemfile.
* Remove of mri specific taks will happen later, will heckle locally
  with external rspec-1.3 + heckle setup.
* Mutant should be self hosting as fast as possible :P
2012-07-31 00:48:04 +02:00

18 lines
672 B
Ruby

# encoding: utf-8
guard :bundler do
watch('Gemfile')
end
guard :rspec, :version => 2, :all_on_start => false do
# run all specs if the spec_helper or supporting files files are modified
watch('spec/spec_helper.rb') { 'spec' }
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("lib/#{File.basename(File.expand_path('../', __FILE__))}.rb") { 'spec' }
# run a spec if it is modified
watch(%r{\Aspec/(?:unit|integration)/.+_spec\.rb\z})
end