Sha256: f9ccc980009dd18e25ea86d081ccc2c855a3b5d04aba7d42c2533f4863967da7

Contents?: true

Size: 989 Bytes

Versions: 25

Compression:

Stored size: 989 Bytes

Contents

guard :rspec, cmd: 'spring rspec' do
  watch(%r{^spec/.+_spec\.rb$})
  watch(%r{^lib/(.+)\.rb$})     { |m| "spec/lib/#{m[1]}_spec.rb" }
  watch('spec/spec_helper.rb')  { "spec" }

  # Rails example
  watch(%r{^app/(.+)\.rb$})                           { |m| "spec/#{m[1]}_spec.rb" }
  watch(%r{^app/(.*)(\.erb|\.haml|\.slim)$})          { |m| "spec/#{m[1]}#{m[2]}_spec.rb" }
  watch(%r{^app/controllers/(.+)_(controller)\.rb$})  { |m| ["spec/routing/#{m[1]}_routing_spec.rb", "spec/#{m[2]}s/#{m[1]}_#{m[2]}_spec.rb", "spec/acceptance/#{m[1]}_spec.rb"] }
  watch(%r{^spec/support/(.+)\.rb$})                  { "spec" }
  watch('config/routes.rb')                           { "spec/routing" }
  watch('app/controllers/application_controller.rb')  { "spec/controllers" }

  # Capybara features specs
  watch(%r{^app/views/(.+)/.*\.(erb|haml|slim)$})     { |m| "spec/features/#{m[1]}_spec.rb" }
  watch(%r{^app/controllers/(.+)_(controller)\.rb$})  { |m| "spec/features/#{m[1]}_spec.rb" }
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
jetfuel-1.19.24 templates/Guardfile
jetfuel-1.19.23 templates/Guardfile
jetfuel-1.19.22 templates/Guardfile
jetfuel-1.19.21 templates/Guardfile
jetfuel-1.19.20 templates/Guardfile
jetfuel-1.19.19 templates/Guardfile
jetfuel-1.19.18 templates/Guardfile
jetfuel-1.19.17 templates/Guardfile
jetfuel-1.19.16 templates/Guardfile
jetfuel-1.19.15 templates/Guardfile
jetfuel-1.19.14 templates/Guardfile
jetfuel-1.19.13 templates/Guardfile
jetfuel-1.19.12 templates/Guardfile
jetfuel-1.19.11 templates/Guardfile
jetfuel-1.19.10 templates/Guardfile
jetfuel-1.19.9 templates/Guardfile
jetfuel-1.19.8 templates/Guardfile
jetfuel-1.19.7 templates/Guardfile
jetfuel-1.19.6 templates/Guardfile
jetfuel-1.19.5 templates/Guardfile