Sha256: ea861c8d801fd273d84787b9530d9a9a5907de30a6c797385da0c92a6b746674

Contents?: true

Size: 1.03 KB

Versions: 37

Compression:

Stored size: 1.03 KB

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{^lib/(.+)\.rb$})     { |m| "spec/lib/#{m[1]}_spec.rb" }
  watch('spec/spec_helper.rb')  { "spec" }

  # Rails example
  watch(%r{^spec/.+_spec\.rb$})
  watch(%r{^app/(.+)\.rb$})                           { |m| "spec/#{m[1]}_spec.rb" }
  watch(%r{^lib/(.+)\.rb$})                           { |m| "spec/lib/#{m[1]}_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('spec/spec_helper.rb')                        { "spec" }
  watch('config/routes.rb')                           { "spec/routing" }
  watch('app/controllers/application_controller.rb')  { "spec/controllers" }
  # Capybara request specs
  watch(%r{^app/views/(.+)/.*\.(erb|haml)$})          { |m| "spec/requests/#{m[1]}_spec.rb" }
end

Version data entries

37 entries across 37 versions & 6 rubygems

Version Path
google_authentication-0.3.0 Guardfile
puffer_pages-0.5.1 Guardfile
puffer_pages-0.5.0 Guardfile
rdio_api-0.1.1 Guardfile
google_authentication-0.2.0 Guardfile
puffer_pages-0.1.1 Guardfile
puffer-0.1.1 Guardfile
puffer_pages-0.1.0 Guardfile
puffer-0.1.0 Guardfile
puffer-0.0.32 Guardfile
puffer-0.0.31 Guardfile
puffer_pages-0.0.19 Guardfile
puffer-0.0.30 Guardfile
puffer-0.0.29 Guardfile
puffer-0.0.28 Guardfile
puffer-0.0.26 Guardfile
puffer_pages-0.0.18 Guardfile
puffer-0.0.25 Guardfile
puffer-0.0.24 Guardfile
hash_dealer-1.1.0 Guardfile