Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 43 lines (38 sloc) 0.922 kB
7a8b9c6 @jcf Add some features and setup guard-cucumber
jcf authored
1 # vim: syn=ruby
777fe7e @jcf Configure guard-rspec
jcf authored
2 # rubies = %w[
3 # 1.8.6
4 # 1.8.7
5 # 1.9.2
6 # ree
7 # jruby
8 # ].map { |ruby| "#{ruby}@webmock" }
9
10 rspec_options = {
11 # :rvm => rubies,
12 :all_on_start => false,
13 :notification => false,
14 :cli => '--color',
15 :version => 2
16 }
17
18 guard 'rspec', rspec_options do
754df4f @jcf Add guard-rspec for automated testing
jcf authored
19 watch(%r{^spec/.+_spec\.rb})
20 watch(%r{^lib/(.+)\.rb}) { |m| "spec/lib/#{m[1]}_spec.rb" }
21 watch('spec/spec_helper.rb') { "spec" }
22 end
7a8b9c6 @jcf Add some features and setup guard-cucumber
jcf authored
23
24 cucumber_options = {
25 :cli => <<-CLI.gsub("\n", '')
26 --no-profile
27 --color
28 --format pretty
29 --strict
30 --require features/support
31 --require features/step_definitions
32 --tags ~@wip
33 CLI
34 }
35
36 guard 'cucumber', cucumber_options do
37 watch(%r{^features/.+\.feature$})
38 watch(%r{^features/support/.+$}) { 'features' }
39 watch(%r{^features/step_definitions/(.+)_steps\.rb$}) do |m|
40 Dir[File.join("**/#{m[1]}.feature")][0] || 'features'
41 end
42 end
Something went wrong with that request. Please try again.