class PrependProtectForgeryBaseControllerTest
Constants
- PrependDefaultController
- PrependFalseController
- PrependTrueController
Public Instance Methods
test_verify_authenticity_token_is_not_prepended()
click to toggle source
# File actionpack/test/controller/request_forgery_protection_test.rb, line 687 def test_verify_authenticity_token_is_not_prepended @controller = PrependFalseController.new get :index expected_callback_order = ["custom_action", "verify_authenticity_token"] assert_equal(expected_callback_order, @controller.called_callbacks) end
test_verify_authenticity_token_is_not_prepended_by_default()
click to toggle source
# File actionpack/test/controller/request_forgery_protection_test.rb, line 694 def test_verify_authenticity_token_is_not_prepended_by_default @controller = PrependDefaultController.new get :index expected_callback_order = ["custom_action", "verify_authenticity_token"] assert_equal(expected_callback_order, @controller.called_callbacks) end
test_verify_authenticity_token_is_prepended()
click to toggle source
# File actionpack/test/controller/request_forgery_protection_test.rb, line 680 def test_verify_authenticity_token_is_prepended @controller = PrependTrueController.new get :index expected_callback_order = ["verify_authenticity_token", "custom_action"] assert_equal(expected_callback_order, @controller.called_callbacks) end