Guardfile
guard :rspec, cmd: 'rspec' do
watch(%r{^spec/.+_spec\.rb$})
watch(%r{^lib/(.+)\.rb$}) { "spec" }
watch('spec/spec_helper.rb') { "spec" }
end
guard :rubocop, all_on_start: false, cli: ['--format', 'clang', '--rails'] do
watch(%r{^spec/.+_spec\.rb$})
watch(%r{^lib/(.+)\.rb$})
watch('spec/spec_helper.rb')
end