Commit ef4e9c24 authored by Nihad Abbasov's avatar Nihad Abbasov

install guard-spinach

parent ae9689f8
...@@ -119,6 +119,7 @@ group :development, :test do ...@@ -119,6 +119,7 @@ group :development, :test do
# Guard # Guard
gem 'guard-rspec' gem 'guard-rspec'
gem 'guard-spinach'
# Notification # Notification
gem 'rb-fsevent', :require => darwin_only('rb-fsevent') gem 'rb-fsevent', :require => darwin_only('rb-fsevent')
......
...@@ -178,6 +178,9 @@ GEM ...@@ -178,6 +178,9 @@ GEM
thor (>= 0.14.6) thor (>= 0.14.6)
guard-rspec (1.2.1) guard-rspec (1.2.1)
guard (>= 1.1) guard (>= 1.1)
guard-spinach (0.0.2)
guard (>= 1.1)
spinach
haml (3.1.6) haml (3.1.6)
haml-rails (0.3.4) haml-rails (0.3.4)
actionpack (~> 3.0) actionpack (~> 3.0)
...@@ -405,6 +408,7 @@ DEPENDENCIES ...@@ -405,6 +408,7 @@ DEPENDENCIES
grit! grit!
growl growl
guard-rspec guard-rspec
guard-spinach
haml-rails haml-rails
headless headless
httparty httparty
......
...@@ -16,15 +16,11 @@ guard 'rspec', :version => 2 do ...@@ -16,15 +16,11 @@ guard 'rspec', :version => 2 do
# Capybara request specs # Capybara request specs
watch(%r{^app/views/(.+)/.*\.(erb|haml)$}) { |m| "spec/requests/#{m[1]}_spec.rb" } watch(%r{^app/views/(.+)/.*\.(erb|haml)$}) { |m| "spec/requests/#{m[1]}_spec.rb" }
# Turnip features and steps
watch(%r{^spec/acceptance/(.+)\.feature$})
watch(%r{^spec/acceptance/steps/(.+)_steps\.rb$}) { |m| Dir[File.join("**/#{m[1]}.feature")][0] || 'spec/acceptance' }
end end
guard 'spinach' do
guard 'cucumber' do watch(%r|^features/(.*)\.feature|)
watch(%r{^features/.+\.feature$}) watch(%r|^features/steps/(.*)([^/]+)\.rb|) do |m|
watch(%r{^features/support/.+$}) { 'features' } "features/#{m[1]}#{m[2]}.feature"
watch(%r{^features/step_definitions/(.+)_steps\.rb$}) { |m| Dir[File.join("**/#{m[1]}.feature")][0] || 'features' } end
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment