summaryrefslogtreecommitdiff
path: root/spec/support/forgery_protection.rb
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2019-07-25 17:23:50 +0000
committerDouwe Maan <douwe@gitlab.com>2019-07-25 17:23:50 +0000
commit9eea3623fa9d59d76f08250947b876abeff89810 (patch)
tree56bf56afe668ac0135014a865dcdf8829f84796e /spec/support/forgery_protection.rb
parent32be68af8ac7d9bfb07568b5cd9b1d7cc17ac12e (diff)
parentd4ef3be35b63f3ef022e21d6ba56ffe41b8f192c (diff)
downloadgitlab-ce-9eea3623fa9d59d76f08250947b876abeff89810.tar.gz
Merge branch 'frozen_string_spec_support' into 'master'
Add frozen_string_literal to spec/support See merge request gitlab-org/gitlab-ce!31132
Diffstat (limited to 'spec/support/forgery_protection.rb')
-rw-r--r--spec/support/forgery_protection.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/support/forgery_protection.rb b/spec/support/forgery_protection.rb
index fa87d5fa881..1d6ea013292 100644
--- a/spec/support/forgery_protection.rb
+++ b/spec/support/forgery_protection.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
module ForgeryProtection
def with_forgery_protection
ActionController::Base.allow_forgery_protection = true