Sha256: 610a080bbcd133abc83159497e835dcac1b5c179fd354453661c777fe109a24b
Contents?: true
Size: 736 Bytes
Versions: 93
Compression:
Stored size: 736 Bytes
Contents
group :red_green_refactor, halt_on_fail: true do guard :rspec, cmd: "rspec", all_on_start: true do # run all specs if Gemfile.lock is modified watch('Gemfile.lock') { 'spec' } # run all specs if any library code is modified watch(%r{\Alib/.+\.rb\z}) { 'spec' } # run all specs if supporting files are modified watch('spec/spec_helper.rb') { 'spec' } watch(%r{\Aspec/(?:lib|support|shared)/.+\.rb\z}) { 'spec' } # run a spec if it is modified watch(%r{\Aspec/(?:unit|integration)/.+_spec\.rb\z}) notification :tmux, display_message: true if ENV.key?('TMUX') end guard :rubocop do # run rubocop on modified file watch(%r{\Alib/.+\.rb\z}) watch(%r{\Aspec/.+\.rb\z}) end end
Version data entries
93 entries across 93 versions & 4 rubygems