forked from echarp/haltr
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGuardfile
More file actions
21 lines (18 loc) · 1.32 KB
/
Guardfile
File metadata and controls
21 lines (18 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# A sample Guardfile
# More info at https://github.com/guard/guard#readme
H="plugins/haltr"
guard :minitest, :zeus => true, :all_on_start => false, :all_after_pass => false, :test_folders => ["#{H}/test"] do
watch(%r{^#{H}/lib/(.+)\.rb$}) { |m| "#{H}/test/#{m[1]}_test.rb" }
watch(%r{^#{H}/lib/haltr/(.+)\.rb$}) { |m| "#{H}/test/lib/#{m[1]}_test.rb" }
watch(%r{^#{H}/lib/haltr/bank_info_validator.rb$}) { ["#{H}/test/unit/bank_info_test.rb", "#{H}/test/unit/client_test.rb"] }
watch(%r{^#{H}/lib/haltr/xml_validation(.+)$}) { |m| "#{H}/test/functional/invoices_controller_test.rb" }
watch(%r{^#{H}/app/models/(.+)\.rb$}) { |m| "#{H}/test/unit/#{m[1]}_test.rb" }
watch(%r{^#{H}/app/controllers/(.+)\.rb$}) { |m| "#{H}/test/functional/#{m[1]}_test.rb" }
watch(%r{^#{H}/app/views/.+\.erb$}) { ["#{H}/test/functional", "#{H}/test/integration"] }
watch(%r{^#{H}/test/.+_test\.rb$})
watch("#{H}/app/controllers/application_controller.rb") { ["#{H}/test/functional", "#{H}/test/integration"] }
watch("#{H}/app/controllers/invoices_controller.rb") { "#{H}/test/integration/invoice_edit_test.rb" }
watch("#{H}/test/test_helper.rb") { "#{H}/test" }
end
#notification :notifysend
notification :libnotify