Sha256: d1eeb80c3d2da4101fea7949ccf1b1c353900bd11bce353bc7a7e8f7b84a49f6
Contents?: true
Size: 672 Bytes
Versions: 5
Compression:
Stored size: 672 Bytes
Contents
# encoding: utf-8 guard :bundler do watch('Gemfile') end guard :rspec, :all_on_start => false 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
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
mutant-0.2.4 | Guardfile |
mutant-0.2.3 | Guardfile |
mutant-0.2.2 | Guardfile |
mutant-0.2.1 | Guardfile |
mutant-0.2.0 | Guardfile |