asciinema.org/Guardfile

15 lines
910 B
Plaintext
Raw Normal View History

2013-09-02 19:52:31 +00:00
notification :tmux, :color_location => 'status-right-bg'
2013-12-09 23:26:39 +00:00
guard 'rspec', :cmd => 'spring rspec --fail-fast --tag ~js --tag ~slow' do
2012-12-09 15:13:52 +00:00
watch('spec/spec_helper.rb') { "spec" }
2013-11-30 23:53:00 +00:00
watch('config/routes.rb') { "spec/routing" }
watch('app/controllers/application_controller.rb') { "spec/controllers" }
watch(%r{^spec/.+_spec\.rb$})
2012-12-09 15:13:52 +00:00
watch(%r{^app/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
2013-11-30 23:53:00 +00:00
watch(%r{^app/(.*)(\.erb|\.haml|\.slim)$}) { |m| "spec/#{m[1]}#{m[2]}_spec.rb" }
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
2012-12-09 15:13:52 +00:00
watch(%r{^app/controllers/(.+)_(controller)\.rb$}) { |m| ["spec/routing/#{m[1]}_routing_spec.rb", "spec/#{m[2]}s/#{m[1]}_#{m[2]}_spec.rb", "spec/acceptance/#{m[1]}_spec.rb"] }
watch(%r{^spec/support/(.+)\.rb$}) { "spec" }
2013-05-27 17:53:24 +00:00
watch(%r{^spec/features/(.+)\.rb$})
2012-12-09 15:13:52 +00:00
end