mirror of
https://github.com/Growstuff/growstuff.git
synced 2025-12-23 17:47:49 -05:00
16 lines
612 B
Ruby
16 lines
612 B
Ruby
# frozen_string_literal: true
|
|
|
|
guard :rspec,
|
|
cmd: 'bundle exec rspec --format documentation',
|
|
failed_mode: :keep do
|
|
watch(%r{^spec/.+_spec\.rb$})
|
|
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/libs/#{m[1]}_spec.rb" }
|
|
watch('spec/spec_helper.rb') { "spec" }
|
|
|
|
# Rails example
|
|
watch(%r{^app/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
|
|
watch(%r{^app/(.*)(\.erb|\.haml|\.slim)$}) { |m| "spec/#{m[1]}#{m[2]}_spec.rb" }
|
|
watch(%r{^spec/support/(.+)\.rb$}) { "spec" }
|
|
watch('config/routes.rb') { "spec/routing" }
|
|
end
|