forked from dark-panda/webhookr
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGuardfile
More file actions
31 lines (23 loc) · 662 Bytes
/
Guardfile
File metadata and controls
31 lines (23 loc) · 662 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
28
29
30
guard 'minitest', :test_folders => 'test', :test_file_patterns => '*_test.rb' do
watch(%r|^test/(.+)_test\.rb|)
watch(%r|^test/stubs/(.+)\.rb$|) { "test" }
# Rails
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('config/routes.rb') {
["test/functional", "test/integration"]
}
end
guard 'livereload' do
watch('README.html')
end
guard 'markdown', :convert_on_start => true do
watch ('README.md') { "./README.md|./README.html" }
end
if File.exists?('Guardfile.local')
instance_eval File.read('Guardfile.local')
end