guard for cucumber

pull/1186/head
Martin Linkhorst 12 years ago
parent 0288324b4f
commit b5a38eefff
  1. 1
      Gemfile
  2. 4
      Gemfile.lock
  3. 6
      Guardfile

@ -68,6 +68,7 @@ group :development do
gem 'letter_opener', '~> 1.0.0'
gem 'rails-dev-tweaks', '~> 0.6.1'
gem 'guard-rspec'
gem 'guard-cucumber'
end
group :development, :test do

@ -110,6 +110,9 @@ GEM
lumberjack (>= 1.0.2)
pry (>= 0.9.10)
thor (>= 0.14.6)
guard-cucumber (1.2.0)
cucumber (>= 1.2.0)
guard (>= 1.1.0)
guard-rspec (2.1.0)
guard (>= 1.1)
rspec (~> 2.11)
@ -298,6 +301,7 @@ DEPENDENCIES
factory_girl_rails (~> 4.0)
fastercsv (~> 1.5.0)
globalize3!
guard-cucumber
guard-rspec
guard-test
htmldiff

@ -19,6 +19,12 @@ guard :rspec do
watch(%r{^spec/acceptance/steps/(.+)_steps\.rb$}) { |m| Dir[File.join("**/#{m[1]}.feature")][0] || 'spec/acceptance' }
end
guard :cucumber do
watch(%r{^features/.+\.feature$})
watch(%r{^features/support/.+$}) { 'features' }
watch(%r{^features/step_definitions/(.+)_steps\.rb$}) { |m| Dir[File.join("**/#{m[1]}.feature")][0] || 'features' }
end
guard :test do
watch(%r{^lib/(.+)\.rb$}) { |m| "test/#{m[1]}_test.rb" }
watch(%r{^test/.+_test\.rb$})

Loading…
Cancel
Save