1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #2974 from md5/csrf_token_warning

Use ensure instead of rescue
This commit is contained in:
Santiago Pastorino 2011-09-10 17:29:04 -07:00
commit a9509284ca

View file

@ -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