-
Notifications
You must be signed in to change notification settings - Fork 0
/
Guardfile
41 lines (38 loc) · 1.16 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
32
33
34
35
36
37
38
39
40
41
env = {
'RAILS_ENV' => 'test',
'RACK_ENV' => 'test',
'REVILY_API_ENDPOINT' => 'http://localhost:9001',
'REVILY_AUTH_TOKEN' => 'dGpYyvbApYxXGAvPkQjt'
}
guard(:spork,
rspec_env: env,
rspec_port: 19004,
aggressive_kill: false
) do
watch('Gemfile.lock')
watch('spec/spec_helper.rb') { :rspec }
end
guard(:rspec,
cli: "--color --drb --drb-port=19004 --tty -r rspec/instafail -f RSpec::Instafail --profile",
env: env,
bundler: false,
all_after_pass: false,
all_on_start: false,
keep_failed: false
) do
watch(%r{^spec/.+_spec\.rb$})
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
watch('spec/spec_helper.rb') { "spec" }
end
notification :tmux,
display_message: true,
timeout: 3, # in seconds
default_message_format: '%s >> %s',
default: 'default',
success: 'default',
failed: 'colour1',
# the first %s will show the title, the second the message
# Alternately you can also configure *success_message_format*,
# *pending_message_format*, *failed_message_format*
line_separator: ' > ', # since we are single line we need a separator
color_location: 'status-left-fg' # to customize which tmux element will change color