Sha256: 654d3fed496b1f3849fd6957e82726925c4fb97a2e96a51946fa19204b36ab90

Contents?: true

Size: 1.45 KB

Versions: 24

Compression:

Stored size: 1.45 KB

Contents

guard 'spork', :cucumber_env => { 'RAILS_ENV' => 'test' }, :rspec_env => { 'RAILS_ENV' => 'test' } do
  watch('config/application.rb')
  watch('config/environment.rb')
  watch(%r{^config/environments/.+\.rb$})
  watch(%r{^config/initializers/.+\.rb$})
  watch('Gemfile')
  watch('Gemfile.lock')
  watch('spec/spec_helper.rb')
  watch('test/test_helper.rb')
end


guard 'rspec', :version => 2, :all_after_pass => false, :cli => '--drb' 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{^app/(.*)(\.erb|\.haml)$})                 { |m| "spec/#{m[1]}#{m[2]}_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

24 entries across 24 versions & 1 rubygems

Version Path
forge-cli-0.1.10 lib/forge/Guardfile
forge-cli-0.1.9 lib/forge/Guardfile
forge-cli-0.1.8 lib/forge/Guardfile
forge-cli-0.1.7 lib/forge/Guardfile
forge-cli-0.1.6 lib/forge/Guardfile
forge-cli-0.1.5 lib/forge/Guardfile
forge-cli-0.1.4 lib/forge/Guardfile
forge-cli-0.1.3 lib/forge/Guardfile
forge-cli-0.1.2 lib/forge/Guardfile
forge-cli-0.1.1 lib/forge/Guardfile
forge-cli-0.1.0 lib/forge/Guardfile
forge-cli-0.0.18 lib/forge/Guardfile
forge-cli-0.0.17 lib/forge/Guardfile
forge-cli-0.0.16 lib/forge/Guardfile
forge-cli-0.0.15 lib/forge/Guardfile
forge-cli-0.0.14 lib/forge/Guardfile
forge-cli-0.0.13 lib/forge/Guardfile
forge-cli-0.0.12 lib/forge/Guardfile
forge-cli-0.0.11 lib/forge/Guardfile
forge-cli-0.0.10 lib/forge/Guardfile