aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller
diff options
context:
space:
mode:
authorMike Dillon <mike@embody.org>2011-09-10 11:01:22 -0700
committerMike Dillon <mike@embody.org>2011-09-10 11:01:22 -0700
commitdbef311819c2c6475d156cc74611992ae45f1330 (patch)
treedddfca4c5370408ee767f45e2937f351602b97ce /actionpack/test/controller
parente7e6515146322c4e5feba61c8365458df4b9fd67 (diff)
downloadrails-dbef311819c2c6475d156cc74611992ae45f1330.tar.gz
rails-dbef311819c2c6475d156cc74611992ae45f1330.tar.bz2
rails-dbef311819c2c6475d156cc74611992ae45f1330.zip
Use ensure instead of rescue
Diffstat (limited to 'actionpack/test/controller')
-rw-r--r--actionpack/test/controller/request_forgery_protection_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/test/controller/request_forgery_protection_test.rb b/actionpack/test/controller/request_forgery_protection_test.rb
index 7a0b724387..fd5a41a0bb 100644
--- a/actionpack/test/controller/request_forgery_protection_test.rb
+++ b/actionpack/test/controller/request_forgery_protection_test.rb
@@ -168,7 +168,7 @@ module RequestForgeryProtectionTests
assert_equal 1, logger.logged(:warn).size
assert_match(/CSRF token authenticity/, logger.logged(:warn).last)
- rescue
+ ensure
ActionController::Base.logger = old_logger
end
end