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

Merge pull request #4588 from carlosantoniodasilva/remove-require-csrf

Remove not used requires from csrf helper file and test
This commit is contained in:
José Valim 2012-01-21 13:00:42 -08:00
commit 15a9b2c0d6
2 changed files with 0 additions and 9 deletions

View file

@ -1,5 +1,3 @@
require 'active_support/core_ext/string/strip'
module ActionView
# = Action View CSRF Helper
module Helpers

View file

@ -1,6 +1,5 @@
require 'abstract_unit'
require 'digest/sha1'
require 'active_support/core_ext/string/strip'
require "active_support/log_subscriber/test_helper"
# common controller actions
@ -72,9 +71,7 @@ class CustomAuthenticityParamController < RequestForgeryProtectionController
end
end
# common test methods
module RequestForgeryProtectionTests
def setup
@token = "cf50faa3fe97702ca1ae"
@ -246,10 +243,6 @@ class FreeCookieControllerTest < ActionController::TestCase
end
end
class CustomAuthenticityParamControllerTest < ActionController::TestCase
def setup
ActionController::Base.request_forgery_protection_token = :custom_token_name