diff options
author | Louise Crow <louise.crow@gmail.com> | 2011-02-24 17:56:40 +0000 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2011-02-24 17:56:40 +0000 |
commit | 1e76c6000955de64ebe9c9ddcb8e2b1d919b7a8d (patch) | |
tree | d4f0560660088cb7de55282b59ab6d61ca1604b5 | |
parent | dd6cbb11db6be0a726677b75ea1de7ed9c9d3396 (diff) |
Disable CSRF protection in the test environment
-rw-r--r-- | config/environments/test.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/config/environments/test.rb b/config/environments/test.rb index ed87e5ecf..216998288 100644 --- a/config/environments/test.rb +++ b/config/environments/test.rb @@ -18,4 +18,7 @@ config.action_controller.perform_caching = false # ActionMailer::Base.deliveries array. config.action_mailer.delivery_method = :test - config.gem 'rspec-rails', :version => '>= 1.3.3', :lib => false unless File.directory?(File.join(Rails.root, 'vendor/plugins/rspec-rails')) +config.gem 'rspec-rails', :version => '>= 1.3.3', :lib => false unless File.directory?(File.join(Rails.root, 'vendor/plugins/rspec-rails')) + +# Disable request forgery protection in test environment +config.action_controller.allow_forgery_protection = false
\ No newline at end of file |