aboutsummaryrefslogtreecommitdiffstats
path: root/railties/environments
diff options
context:
space:
mode:
Diffstat (limited to 'railties/environments')
-rw-r--r--railties/environments/test.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/railties/environments/test.rb b/railties/environments/test.rb
index bbca20a31b..58850a7974 100644
--- a/railties/environments/test.rb
+++ b/railties/environments/test.rb
@@ -13,6 +13,9 @@ config.whiny_nils = true
config.action_controller.consider_all_requests_local = true
config.action_controller.perform_caching = false
+# Disable request forgery protection in test environment
+config.action_controller.allow_forgery_protection = false
+
# Tell ActionMailer not to deliver emails to the real world.
# The :test delivery method accumulates sent emails in the
# ActionMailer::Base.deliveries array.