Sha256: b6f06615820fe12601205cd66f087bd7238ba973654e65783d01c773472a8e52
Contents?: true
Size: 1.15 KB
Versions: 1
Compression:
Stored size: 1.15 KB
Contents
interactor :off guard :rspec, :cli => '--debug' do # Run the corresponding spec (or all specs) when code changes. watch(%r{^lib/(.+)\.rb$}) do |match| Dir[File.join("**/#{match[1]}_spec.rb")].first || 'spec' end # Run a spec when it changes. watch %r{^spec/.+_spec\.rb$} # Run all specs when the RSpec configuration changes. watch('.rspec' ) { 'spec' } watch('spec/spec_helper.rb') { 'spec' } # Run all specs when the bundle changes. watch('Gemfile.lock') { 'spec' } end guard :cucumber do # Run run all features when code changes. watch(%r{^lib/(.+)\.rb$}) { 'features' } # Run the corresponding feature (or all features) when a step definition # changes. watch(%r{^features/step_definitions\.rb$}) { 'features' } watch(%r{^features/step_definitions/(.+)_steps\.rb$}) do |match| Dir[File.join("**/#{match[1]}.feature")].first || 'features' end # Run a feature when it changes. watch %r{^features/.+\.feature$} # Run all features when the Cucumber configuration changes. watch(%r{^features/support/.+$}) { 'features' } # Run all features when the bundle changes. watch('Gemfile.lock') { 'features' } end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cape-1.7.0 | Guardfile |