forked from hacken-in/hacken-in
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGuardfile
More file actions
27 lines (24 loc) · 926 Bytes
/
Guardfile
File metadata and controls
27 lines (24 loc) · 926 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
guard 'pow' do
watch('.powrc')
watch('.powenv')
watch('.rvmrc')
watch('Gemfile')
watch('Gemfile.lock')
watch('config/application.rb')
watch('config/environment.rb')
watch(%r{^config/environments/.*\.rb$})
watch(%r{^config/initializers/.*\.rb$})
end
guard 'bundler' do
watch('Gemfile')
end
guard 'test', drb: false do
watch(%r{lib/(.*)\.rb}) { |m| "test/#{m[1]}_test.rb" }
watch(%r{test/.*_test\.rb})
watch('test/test_helper.rb') { "test" }
watch(%r{app/models/(.*)\.rb}) { |m| "test/unit/#{m[1]}_test.rb" }
watch(%r{app/controllers/(.*)\.rb}) { |m| "test/functional/#{m[1]}_test.rb" }
watch(%r{app/views/.*\.rb}) { "test/integration" }
watch('app/controllers/application_controller.rb') { ["test/functional", "test/integration"] }
watch('config/routes.rb') { "test/integration/routes_test.rb" }
end