3e1f9c408f
* Mutator and Generator where merged. * A single pass over all duplications was made. * It is clear a specific handles?(node) code for finding mutators is needed. Like virtus does for attributes, should also cache. * Does not pass on 1.9 mode currently as blocks are unexpectly parsed differend when it comes to a series of literal booleans.
18 lines
648 B
Ruby
18 lines
648 B
Ruby
# encoding: utf-8
|
|
|
|
guard :bundler do
|
|
watch('Gemfile')
|
|
end
|
|
|
|
guard :rspec, :version => 2 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
|