diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-10-22 17:37:16 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-10-22 17:37:16 +0000 |
commit | 2d1866d966d94c688f9cb87c5bf3f096dffac844 (patch) | |
tree | 7a733c1cc51448ab69b3f892285305dbfb0ae15e /config/environments/test.rb | |
parent | a6ec78a4dc658e3517ed682792016b6530458696 (diff) | |
download | redmine-2d1866d966d94c688f9cb87c5bf3f096dffac844.tar.gz redmine-2d1866d966d94c688f9cb87c5bf3f096dffac844.zip |
Merged rails-4.1 branch (#14534).
git-svn-id: http://svn.redmine.org/redmine/trunk@13482 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'config/environments/test.rb')
-rw-r--r-- | config/environments/test.rb | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/config/environments/test.rb b/config/environments/test.rb index f3d0ee9b8..249910443 100644 --- a/config/environments/test.rb +++ b/config/environments/test.rb @@ -1,16 +1,19 @@ -# Settings specified here will take precedence over those in config/application.rb -RedmineApp::Application.configure do +Rails.application.configure do + # Settings specified here will take precedence over those in config/application.rb + # The test environment is used exclusively to run your application's # test suite. You never need to work with it otherwise. Remember that # your test database is "scratch space" for the test suite and is wiped # and recreated between test runs. Don't rely on the data there! config.cache_classes = true - # Log error messages when you accidentally call methods on nil. - config.whiny_nils = true + # Do not eager load code on boot. This avoids loading your whole application + # just for the purpose of running a single test. If you are using a tool that + # preloads Rails for running tests, you may have to set it to true. + config.eager_load = false # Show full error reports and disable caching - #config.action_controller.consider_all_requests_local = true + config.consider_all_requests_local = true config.action_controller.perform_caching = false config.action_mailer.perform_deliveries = true @@ -20,10 +23,10 @@ RedmineApp::Application.configure do # ActionMailer::Base.deliveries array. config.action_mailer.delivery_method = :test - # Skip protect_from_forgery in requests - # http://m.onkey.org/2007/9/28/csrf-protection-for-your-existing-rails-application + # Disable request forgery protection in test environment. config.action_controller.allow_forgery_protection = false + # Print deprecation notices to stderr and the Rails logger. config.active_support.deprecation = [:stderr, :log] config.secret_token = 'a secret token for running the tests' |