@ -63,8 +63,9 @@ guard :minitest, spring: "bin/rails test", all_after_pass: true do
|
||||
watch(%r{^lib/(.+)\.rb$}) { |m| "test/lib/#{m[1]}_test.rb" }
|
||||
watch(%r{^test/test_helper\.rb$}) { 'test' }
|
||||
watch(%r{^test/.+_test\.rb$})
|
||||
# run controller/integration test when touching erb files
|
||||
# run controller/integration test when touching the router or erb files
|
||||
watch(%r{^app/views/((?!_mailer).)*([^/]+)\.erb$}) { ["test/controllers", "test/integration"] }
|
||||
watch(%r{^config/routes.rb}) { ["test/controllers", "test/integration"] }
|
||||
# run mailers/integration test when touching mailer erb files
|
||||
watch(%r{^app/views/(.*_mailer/)?([^/]+)\.erb$}) { ["test/mailers", "test/integration"] }
|
||||
end
|
||||
|
Reference in New Issue
Block a user