forked from mbj/unparser
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGuardfile
More file actions
18 lines (14 loc) · 681 Bytes
/
Guardfile
File metadata and controls
18 lines (14 loc) · 681 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# encoding: utf-8
guard :bundler do
watch('Gemfile')
end
guard :rspec, :all_on_start => false, :all_after_pass => false, :cli => '--fail-fast --seed 1' do
# run all specs if the spec_helper or supporting files files are modified
watch('spec/spec_helper.rb') { 'spec/unit' }
watch(%r{\Aspec/(?:lib|support|shared)/.+\.rb\z}) { 'spec/unit' }
# run unit specs if associated lib code is modified
watch(%r{\Alib/(.+)\.rb\z}) { 'spec' }
watch("lib/#{File.basename(File.expand_path('../', __FILE__))}.rb") { 'spec' }
# run a spec if it is modified
watch(%r{\Aspec/(?:unit|integration)/.+_spec\.rb\z})
end