forked from tomlion/mails_viewer
-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathGuardfile
More file actions
20 lines (17 loc) · 714 Bytes
/
Guardfile
File metadata and controls
20 lines (17 loc) · 714 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
guard 'bundler' do
watch('Gemfile')
end
#guard 'spork' do
# watch('config/application.rb')
# watch('config/environment.rb')
# watch(%r{^config/environments/.*\.rb$})
# watch(%r{^config/initializers/.*\.rb$})
# watch('spec/spec_helper.rb')
#end
guard 'rspec', :version => 2, :bundler => true, :cli => "--require rspec/instafail --format RSpec::Instafail --colour" do
watch(%r{^spec/(.*)_spec\.rb$})
watch(%r{^app/(.*)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
watch(%r{^lib/(.*)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
watch('app/controllers/application_controller.rb') { "spec" }
watch('spec/spec_helper.rb') { "spec" }
end