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