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:
commit
a9509284ca
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue