Permalink
Browse files

Use ensure instead of rescue

  • Loading branch information...
1 parent e7e6515 commit dbef311819c2c6475d156cc74611992ae45f1330 @md5 md5 committed Sep 10, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/test/controller/request_forgery_protection_test.rb
@@ -168,7 +168,7 @@ def test_should_warn_on_missing_csrf_token
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

0 comments on commit dbef311

Please sign in to comment.