2022-12-08 16:16:29 +01:00
|
|
|
|
2022-12-22 20:28:00 +01:00
|
|
|
|
2022-12-23 16:30:52 +01:00
|
|
|
guard :minitest , all_on_start: false do
|
|
|
|
sys_tests = "test/integration"
|
2022-12-22 20:28:00 +01:00
|
|
|
# with Minitest::Unit
|
|
|
|
watch(%r{^test/(.*)\/?(.*)_test\.rb$})
|
2022-12-23 16:30:52 +01:00
|
|
|
watch(%r{^app/controllers/merged/([^/]+)_([^/]+)\.rb$}) { |m| Dir["test/integration/#{m[1]}*_test.rb"] }
|
|
|
|
watch(%r{^app/models/merged/([^/]+)\.rb$}) { |m| Dir["test/models/#{m[1]}*_test.rb"] }
|
|
|
|
watch(%r{^app/views/merged/([^/]+)\/([^/]+)\.haml$}){ |m| Dir["test/integration/#{m[1]}_#{m[2]}_test.rb"] }
|
2022-12-22 20:28:00 +01:00
|
|
|
watch(%r{^test/test_helper\.rb$}) { 'test' }
|
|
|
|
end
|