Sha256: 644c8a9c7b504707015a515579ad687dce2b260633465fff6ff7dbbac2f9c707

Contents?: true

Size: 678 Bytes

Versions: 11

Compression:

Stored size: 678 Bytes

Contents

# A sample Guardfile
# More info at https://github.com/guard/guard#readme

guard '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)$})                 { |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" }
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
letter_opener_web-1.2.3 Guardfile
letter_opener_web-1.2.2 Guardfile
letter_opener_web-1.2.1 Guardfile
letter_opener_web-1.2.0 Guardfile
letter_opener_web-1.1.3 Guardfile
letter_opener_web-1.1.2 Guardfile
letter_opener_web-1.1.1 Guardfile
letter_opener_web-1.1.0 Guardfile
letter_opener_web-1.0.3 Guardfile
letter_opener_web-1.0.2 Guardfile
letter_opener_web-1.0.1 Guardfile