# Ignore Vim swap files
ignore /~$/
ignore /^(?:.*[\\\/])?\.[^\\\/]+\.sw[p-z]$/
group :unit do
guard 'minitest', test_folders: 'test/unit', test_file_patterns: '*_test.rb' do
watch(%r'^lib/blah/(.+)\.rb$') {|m| "test/unit/#{m[1]}_test.rb"}
watch(%r'^test/unit/.+_test\.rb$')
end
end
group :spec do
guard 'rspec', binstubs: true, spec_paths: ['test/spec'], all_on_start: false, all_after_pass: false do
watch(%r'^lib/blah/(.+)\.rb$') {|m| "test/spec/#{m[1]}_spec.rb"}
watch(%r'^test/spec/.+_spec\.rb$')
end
end