|
1 | 1 | # More info at https://github.com/guard/guard#readme
|
2 | 2 | guard :minitest, all_on_start: false, all_after_pass: false, spring: "bin/rails test" do
|
3 | 3 | watch(%r{^app/(?:models|presenters|validators|lib)/(.+)\.rb$}) { |m| "test/models/#{m[1]}_test.rb" }
|
4 |
| - watch(%r{^app/helpers/(.+)\.rb$}) { |m| "test/models/helpers/#{m[1]}_test.rb" } |
5 |
| - watch(%r{^app/mailers/(.+)\.rb$}) { |m| "test/controllers/#{m[1]}_test.rb" } |
6 |
| - watch(%r{^app/controllers/(.+)\.rb$}) { |m| "test/controllers/#{m[1]}_test.rb" } |
7 |
| - watch(%r{^app/views/(.+)\/.+$}) { |m| "test/controllers/#{m[1]}_controller_test.rb" } |
8 |
| - watch(%r{^app/jobs/(.+)\.rb$}) { |m| "test/jobs/#{m[1]}_test.rb" } |
9 |
| - watch(%r{^app/views/layouts/.+$}) { "test/controllers" } |
10 |
| - watch(%r{^app/views/.+\.rb$}) { "test/integration" } |
| 4 | + watch(%r{^app/helpers/(.+)\.rb$}) { |m| "test/models/helpers/#{m[1]}_test.rb" } |
| 5 | + watch(%r{^app/helpers/(.+)\.rb$}) { |m| "test/helpers/#{m[1]}_test.rb" } |
| 6 | + watch(%r{^app/mailers/(.+)\.rb$}) { |m| "test/controllers/#{m[1]}_test.rb" } |
| 7 | + watch(%r{^app/controllers/(.+)\.rb$}) { |m| "test/controllers/#{m[1]}_test.rb" } |
| 8 | + watch(%r{^app/views/(.+)\/.+$}) { |m| "test/controllers/#{m[1]}_controller_test.rb" } |
| 9 | + watch(%r{^app/jobs/(.+)\.rb$}) { |m| "test/jobs/#{m[1]}_test.rb" } |
| 10 | + watch(%r{^app/views/layouts/.+$}) { "test/controllers" } |
| 11 | + watch(%r{^app/views/.+\.rb$}) { "test/integration" } |
11 | 12 | watch(%r{^test/.+_test.rb$})
|
12 |
| - watch('app/controllers/application_controller.rb') { ["test/controllers", "test/integration"] } |
13 |
| - watch('test/test_helper.rb') { "test" } |
| 13 | + watch("app/controllers/application_controller.rb") { ["test/controllers", "test/integration"] } |
| 14 | + watch("test/test_helper.rb") { "test" } |
14 | 15 | end
|
0 commit comments