summaryrefslogtreecommitdiff
path: root/config/environments/test.rb
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2026-06-24 04:13:16 +0200
committererdgeist <erdgeist@erdgeist.org>2026-06-24 04:13:16 +0200
commite0a7e0fec760ba12c8067a37e10c96f1f05876e2 (patch)
treed0cf745592a46aee4d4913911fd34c7c24515220 /config/environments/test.rb
parent6424e10be5a89f175a74c71c55660412a169b8b8 (diff)
Stage 1 complete: Rails 2.3.5 to Rails 3.2.22.5 upgrade
- Converted plugins to gems (Gemfile) - Updated config structure (application.rb, boot.rb, environment.rb) - Converted routes to Rails 3 DSL - Converted named_scope to scope throughout models - Converted find(:all, :conditions) to where() chains - Fixed has_many :order to use ordering scope - Updated session store and secret token configuration - Fixed exception_notification middleware configuration - Patched Ruby 2.4 / Rails 3.2 incompatibilities: - Integer/Float duration arithmetic (ActiveSupport) - Arel visit_Integer for PostgreSQL adapter - create_database String/Integer coercion - ActionController consider_all_requests_local - Migrated taggings schema for acts-as-taggable-on - Replaced dynamic_form gem with custom form_error_messages helper - Fixed Rails 3 block helper syntax (form_for, form_tag, fields_for) - Fixed admin layout yield - Updated test suite for Rails 3 APIs
Diffstat (limited to 'config/environments/test.rb')
-rw-r--r--config/environments/test.rb45
1 files changed, 25 insertions, 20 deletions
diff --git a/config/environments/test.rb b/config/environments/test.rb
index 496eb95..728e147 100644
--- a/config/environments/test.rb
+++ b/config/environments/test.rb
@@ -1,27 +1,32 @@
1# Settings specified here will take precedence over those in config/environment.rb 1# Settings specified here will take precedence over those in config/environment.rb
2 2
3# The test environment is used exclusively to run your application's 3Cccms::Application.configure do
4# test suite. You never need to work with it otherwise. Remember that
5# your test database is "scratch space" for the test suite and is wiped
6# and recreated between test runs. Don't rely on the data there!
7config.cache_classes = true
8 4
9# Log error messages when you accidentally call methods on nil. 5 # The test environment is used exclusively to run your application's
10config.whiny_nils = true 6 # test suite. You never need to work with it otherwise. Remember that
7 # your test database is "scratch space" for the test suite and is wiped
8 # and recreated between test runs. Don't rely on the data there!
9 config.cache_classes = true
11 10
12# Show full error reports and disable caching 11 # Log error messages when you accidentally call methods on nil.
13config.action_controller.consider_all_requests_local = true 12 config.whiny_nils = true
14config.action_controller.perform_caching = false
15 13
16# Disable request forgery protection in test environment 14 # Show full error reports and disable caching
17config.action_controller.allow_forgery_protection = false 15 config.action_controller.consider_all_requests_local = true
16 config.action_controller.perform_caching = false
18 17
19# Tell Action Mailer not to deliver emails to the real world. 18 # Disable request forgery protection in test environment
20# The :test delivery method accumulates sent emails in the 19 config.action_controller.allow_forgery_protection = false
21# ActionMailer::Base.deliveries array.
22config.action_mailer.delivery_method = :test
23 20
24# Use SQL instead of Active Record's schema dumper when creating the test database. 21 # Tell Action Mailer not to deliver emails to the real world.
25# This is necessary if your schema can't be completely dumped by the schema dumper, 22 # The :test delivery method accumulates sent emails in the
26# like if you have constraints or database-specific column types 23 # ActionMailer::Base.deliveries array.
27# config.active_record.schema_format = :sql \ No newline at end of file 24 config.action_mailer.delivery_method = :test
25
26 # Use SQL instead of Active Record's schema dumper when creating the test database.
27 # This is necessary if your schema can't be completely dumped by the schema dumper,
28 # like if you have constraints or database-specific column types
29 # config.active_record.schema_format = :sql
30
31 config.active_support.deprecation = :raise
32end