-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathGuardfile
More file actions
16 lines (15 loc) · 717 Bytes
/
Copy pathGuardfile
File metadata and controls
16 lines (15 loc) · 717 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Guardfile
notification :tmux,
:display_message => true,
:timeout => 5, # in seconds
:default_message_format => '%s >> %s',
:line_separator => ' > ', # since we are single line we need a separator
:color_location => 'status-left-bg' # to customize which tmux element will change color
guard 'rspec' do
watch(%r{^spec/.+_spec\.rb$})
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
watch('lib/mohawk/accessors.rb') { |m| "spec/lib/mohawk/accessors" }
watch(%r{^lib/mohawk/(.+)\.rb$}) { |m| "spec/lib/mohawk/#{m[1]}_spec.rb" }
watch(%r{^lib/mohawk/accessors/(.+)\.rb$}) { |m| "spec/lib/mohawk/accessors/#{m[1]}_spec.rb" }
watch('spec/spec_helper.rb') { "spec" }
end