Sha256: 35d1c61796c07229ed21d3b2cb17ec3611d855a912d8142927c403f0b66068e1

Contents?: true

Size: 665 Bytes

Versions: 50

Compression:

Stored size: 665 Bytes

Contents

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

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

  # Lib
  watch(%r{^lib/.+\.rb$}) { "spec" }
  
  # Capybara request specs
  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

Version data entries

50 entries across 50 versions & 1 rubygems

Version Path
actv-2.10.9 Guardfile
actv-2.10.8 Guardfile
actv-2.10.7 Guardfile
actv-2.10.6 Guardfile
actv-2.10.5 Guardfile
actv-2.10.4 Guardfile
actv-2.10.3 Guardfile
actv-2.10.2 Guardfile
actv-2.10.1 Guardfile
actv-2.10.0 Guardfile
actv-2.9.2 Guardfile
actv-2.9.1 Guardfile
actv-2.9.0 Guardfile
actv-2.8.2 Guardfile
actv-2.8.1 Guardfile
actv-2.7.0 Guardfile
actv-2.6.0 Guardfile
actv-2.5.2 Guardfile
actv-2.5.1 Guardfile
actv-2.5.0 Guardfile