forked from bblimke/webmock
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Guardfile
42 lines (38 loc) · 922 Bytes
/
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
42
# vim: syn=ruby
# rubies = %w[
# 1.8.6
# 1.8.7
# 1.9.2
# ree
# jruby
# ].map { |ruby| "#{ruby}@webmock" }
rspec_options = {
# :rvm => rubies,
:all_on_start => false,
:notification => false,
:cli => '--color',
:version => 2
}
guard 'rspec', rspec_options do
watch(%r{^spec/.+_spec\.rb})
watch(%r{^lib/(.+)\.rb}) { |m| "spec/lib/#{m[1]}_spec.rb" }
watch('spec/spec_helper.rb') { "spec" }
end
cucumber_options = {
:cli => <<-CLI.gsub("\n", '')
--no-profile
--color
--format pretty
--strict
--require features/support
--require features/step_definitions
--tags ~@wip
CLI
}
guard 'cucumber', cucumber_options do
watch(%r{^features/.+\.feature$})
watch(%r{^features/support/.+$}) { 'features' }
watch(%r{^features/step_definitions/(.+)_steps\.rb$}) do |m|
Dir[File.join("**/#{m[1]}.feature")][0] || 'features'
end
end