Permalink
Browse files

Remove not used requires from csrf helper file and test

These requires were added in a87b92d and the implementation changed in
2cdc1f0, removing the need for them.
  • Loading branch information...
1 parent c05f3b0 commit 9cecb2db16fc2bde3dd489775d4642a469b9bf53 @carlosantoniodasilva carlosantoniodasilva committed Jan 21, 2012
@@ -1,5 +1,3 @@
-require 'active_support/core_ext/string/strip'
-
module ActionView
# = Action View CSRF Helper
module Helpers
@@ -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 @@ def form_authenticity_param
end
end
-
# common test methods
-
module RequestForgeryProtectionTests
def setup
@token = "cf50faa3fe97702ca1ae"
@@ -246,10 +243,6 @@ def test_should_allow_all_methods_without_token
end
end
-
-
-
-
class CustomAuthenticityParamControllerTest < ActionController::TestCase
def setup
ActionController::Base.request_forgery_protection_token = :custom_token_name

0 comments on commit 9cecb2d

Please sign in to comment.