forked from gregschmit/recurring_select
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Guardfile
31 lines (28 loc) · 1.18 KB
/
Guardfile
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
31
# A sample Guardfile
# More info at https://github.com/guard/guard#readme
guard 'spork', :cucumber_env => { 'RAILS_ENV' => 'test' }, :rspec_env => { 'RAILS_ENV' => 'test' } do
watch('config/application.rb')
watch('config/environment.rb')
watch('config/environments/test.rb')
watch(%r{^config/initializers/.+\.rb$})
watch('Gemfile')
watch('Gemfile.lock')
watch('spec/spec_helper.rb') { :rspec }
watch('test/test_helper.rb') { :test_unit }
watch(%r{features/support/}) { :cucumber }
end
guard 'rspec', ({
:cli => "--drb --color --format documentation",
:run_all => { :cli => "--drb --color" },
}) do
watch(%r{^spec/.+_spec\.rb$})
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
watch(%r{^app/helpers/(.+)\.rb$}) { |m| "spec/app/helpers/#{m[1]}_spec.rb" }
watch('spec/spec_helper.rb') { "spec" }
end
# guard :jasmine do
# watch(%r{spec/javascripts/spec\.(js\.coffee|js|coffee)$}) { 'spec/javascripts' }
# watch(%r{spec/javascripts/.+_spec\.(js\.coffee|js|coffee)$})
# watch(%r{spec/javascripts/fixtures/.+$})
# watch(%r{app/assets/javascripts/(.+?)\.(js\.coffee|js|coffee)(?:\.\w+)*$}) { |m| "spec/javascripts/#{ m[1] }_spec.#{ m[2] }" }
# end