guard :rspec, all_after_pass: true, all_on_start: true, cmd: "bundle exec rspec", failed_mode: :focus do watch(%r{^spec/(.+)_spec\.rb$}) watch(%r{^src/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" } watch(%r{^src/foobara/command/concerns/(.+)\.rb$}) { |_m| "spec/foobara/command_spec.rb" } watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" } watch(%r{^spec/spec_helper.rb$}) { "spec/" } watch(%r{^src/commands.rb$/}) { "spec/" } watch(%r{^projects/([^/]+)/src/(.+)\.rb$}) { |m| "spec/foobara/#{m[1]}/#{m[2]}_spec.rb" } end