Commit ef4e9c24d3dc870eb194591522dda6ec8dde7192
1 parent
ae9689f8
Exists in
master
and in
4 other branches
install guard-spinach
Showing
3 changed files
with
11 additions
and
10 deletions
Show diff stats
Gemfile
Gemfile.lock
... | ... | @@ -178,6 +178,9 @@ GEM |
178 | 178 | thor (>= 0.14.6) |
179 | 179 | guard-rspec (1.2.1) |
180 | 180 | guard (>= 1.1) |
181 | + guard-spinach (0.0.2) | |
182 | + guard (>= 1.1) | |
183 | + spinach | |
181 | 184 | haml (3.1.6) |
182 | 185 | haml-rails (0.3.4) |
183 | 186 | actionpack (~> 3.0) |
... | ... | @@ -405,6 +408,7 @@ DEPENDENCIES |
405 | 408 | grit! |
406 | 409 | growl |
407 | 410 | guard-rspec |
411 | + guard-spinach | |
408 | 412 | haml-rails |
409 | 413 | headless |
410 | 414 | httparty | ... | ... |
Guardfile
... | ... | @@ -13,18 +13,14 @@ guard 'rspec', :version => 2 do |
13 | 13 | watch(%r{^spec/support/(.+)\.rb$}) { "spec" } |
14 | 14 | watch('config/routes.rb') { "spec/routing" } |
15 | 15 | watch('app/controllers/application_controller.rb') { "spec/controllers" } |
16 | - | |
16 | + | |
17 | 17 | # Capybara request specs |
18 | 18 | watch(%r{^app/views/(.+)/.*\.(erb|haml)$}) { |m| "spec/requests/#{m[1]}_spec.rb" } |
19 | - | |
20 | - # Turnip features and steps | |
21 | - watch(%r{^spec/acceptance/(.+)\.feature$}) | |
22 | - watch(%r{^spec/acceptance/steps/(.+)_steps\.rb$}) { |m| Dir[File.join("**/#{m[1]}.feature")][0] || 'spec/acceptance' } | |
23 | 19 | end |
24 | 20 | |
25 | - | |
26 | -guard 'cucumber' do | |
27 | - watch(%r{^features/.+\.feature$}) | |
28 | - watch(%r{^features/support/.+$}) { 'features' } | |
29 | - watch(%r{^features/step_definitions/(.+)_steps\.rb$}) { |m| Dir[File.join("**/#{m[1]}.feature")][0] || 'features' } | |
21 | +guard 'spinach' do | |
22 | + watch(%r|^features/(.*)\.feature|) | |
23 | + watch(%r|^features/steps/(.*)([^/]+)\.rb|) do |m| | |
24 | + "features/#{m[1]}#{m[2]}.feature" | |
25 | + end | |
30 | 26 | end | ... | ... |