annotate config/environments/test.rb @ 8:0c83d98252d9 yuya

* Add custom repo prefix and proper auth realm, remove auth cache (seems like an unwise feature), pass DB handle around, various other bits of tidying
author Chris Cannam
date Thu, 12 Aug 2010 15:31:37 +0100
parents 513646585e45
children 94944d00e43c
rev   line source
Chris@0 1 # Settings specified here will take precedence over those in config/environment.rb
Chris@0 2
Chris@0 3 # The test environment is used exclusively to run your application's
Chris@0 4 # test suite. You never need to work with it otherwise. Remember that
Chris@0 5 # your test database is "scratch space" for the test suite and is wiped
Chris@0 6 # and recreated between test runs. Don't rely on the data there!
Chris@0 7 config.cache_classes = true
Chris@0 8
Chris@0 9 # Log error messages when you accidentally call methods on nil.
Chris@0 10 config.whiny_nils = true
Chris@0 11
Chris@0 12 # Show full error reports and disable caching
Chris@0 13 config.action_controller.consider_all_requests_local = true
Chris@0 14 config.action_controller.perform_caching = false
Chris@0 15
Chris@0 16 config.action_mailer.perform_deliveries = true
Chris@0 17 config.action_mailer.delivery_method = :test
Chris@0 18
Chris@0 19 config.action_controller.session = {
Chris@0 20 :session_key => "_test_session",
Chris@0 21 :secret => "some secret phrase for the tests."
Chris@0 22 }
Chris@0 23
Chris@0 24 # Skip protect_from_forgery in requests http://m.onkey.org/2007/9/28/csrf-protection-for-your-existing-rails-application
Chris@0 25 config.action_controller.allow_forgery_protection = false
Chris@0 26
Chris@0 27 config.gem "shoulda", :version => "~> 2.10.3"
Chris@0 28 config.gem "edavis10-object_daddy", :lib => "object_daddy"
Chris@0 29 config.gem "mocha"