Skip to content

Commit a50e9db

Browse files
committed
test: Add watch test/helpers/ dir for Guard
1 parent 87ba1d2 commit a50e9db

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

Guardfile

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
# More info at https://github.com/guard/guard#readme
22
guard :minitest, all_on_start: false, all_after_pass: false, spring: "bin/rails test" do
33
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" }
1112
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" }
1415
end

0 commit comments

Comments
 (0)