diff options
author | Mike Dillon <mike@embody.org> | 2011-09-10 11:01:22 -0700 |
---|---|---|
committer | Mike Dillon <mike@embody.org> | 2011-09-10 11:01:22 -0700 |
commit | dbef311819c2c6475d156cc74611992ae45f1330 (patch) | |
tree | dddfca4c5370408ee767f45e2937f351602b97ce /actionpack | |
parent | e7e6515146322c4e5feba61c8365458df4b9fd67 (diff) | |
download | rails-dbef311819c2c6475d156cc74611992ae45f1330.tar.gz rails-dbef311819c2c6475d156cc74611992ae45f1330.tar.bz2 rails-dbef311819c2c6475d156cc74611992ae45f1330.zip |
Use ensure instead of rescue
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/test/controller/request_forgery_protection_test.rb | 2 |
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 |