Commit ef4e9c24d3dc870eb194591522dda6ec8dde7192

Authored by Nihad Abbasov
1 parent ae9689f8

install guard-spinach

Showing 3 changed files with 11 additions and 10 deletions   Show diff stats
@@ -119,6 +119,7 @@ group :development, :test do @@ -119,6 +119,7 @@ group :development, :test do
119 119
120 # Guard 120 # Guard
121 gem 'guard-rspec' 121 gem 'guard-rspec'
  122 + gem 'guard-spinach'
122 123
123 # Notification 124 # Notification
124 gem 'rb-fsevent', :require => darwin_only('rb-fsevent') 125 gem 'rb-fsevent', :require => darwin_only('rb-fsevent')
@@ -178,6 +178,9 @@ GEM @@ -178,6 +178,9 @@ GEM
178 thor (>= 0.14.6) 178 thor (>= 0.14.6)
179 guard-rspec (1.2.1) 179 guard-rspec (1.2.1)
180 guard (>= 1.1) 180 guard (>= 1.1)
  181 + guard-spinach (0.0.2)
  182 + guard (>= 1.1)
  183 + spinach
181 haml (3.1.6) 184 haml (3.1.6)
182 haml-rails (0.3.4) 185 haml-rails (0.3.4)
183 actionpack (~> 3.0) 186 actionpack (~> 3.0)
@@ -405,6 +408,7 @@ DEPENDENCIES @@ -405,6 +408,7 @@ DEPENDENCIES
405 grit! 408 grit!
406 growl 409 growl
407 guard-rspec 410 guard-rspec
  411 + guard-spinach
408 haml-rails 412 haml-rails
409 headless 413 headless
410 httparty 414 httparty
@@ -13,18 +13,14 @@ guard 'rspec', :version => 2 do @@ -13,18 +13,14 @@ guard 'rspec', :version => 2 do
13 watch(%r{^spec/support/(.+)\.rb$}) { "spec" } 13 watch(%r{^spec/support/(.+)\.rb$}) { "spec" }
14 watch('config/routes.rb') { "spec/routing" } 14 watch('config/routes.rb') { "spec/routing" }
15 watch('app/controllers/application_controller.rb') { "spec/controllers" } 15 watch('app/controllers/application_controller.rb') { "spec/controllers" }
16 - 16 +
17 # Capybara request specs 17 # Capybara request specs
18 watch(%r{^app/views/(.+)/.*\.(erb|haml)$}) { |m| "spec/requests/#{m[1]}_spec.rb" } 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 end 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 end 26 end