Sha256: 7752488ec7ba6418fec45960574a4f35e43d0a5842af7956ea21fd333b736f39
Contents?: true
Size: 863 Bytes
Versions: 27
Compression:
Stored size: 863 Bytes
Contents
guard :rspec, spec_paths: 'spec/unit' 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
27 entries across 25 versions & 5 rubygems