Commit 09305bfe authored by gfyoung's avatar gfyoung Committed by Thong Kuah

Turn on frozen string cop for ee/spec

Follow-up to:

https://gitlab.com/gitlab-org/gitlab/merge_requests/17754
parent 2cb2352d
......@@ -51,7 +51,6 @@ Style/FrozenStringLiteralComment:
- 'danger/**/*'
- 'db/**/*'
- 'ee/db/**/*'
- 'ee/spec/**/*'
- 'ee/lib/tasks/**/*'
- 'lib/tasks/**/*'
- 'qa/**/*'
......
......@@ -104,7 +104,7 @@ class CsvBuilder
def excel_sanitize(line)
return if line.nil?
line.prepend("'") if line =~ /^[=\+\-@;]/
line = ["'", line].join if line =~ /^[=\+\-@;]/
line
end
end
......@@ -12,7 +12,9 @@ module Gitlab
end
def call(env)
env['HTTP_AUTHORIZATION']&.sub!('token', 'Bearer') if self.class.jira_dvcs_connector?(env)
if self.class.jira_dvcs_connector?(env)
env['HTTP_AUTHORIZATION'] = env['HTTP_AUTHORIZATION']&.sub('token', 'Bearer')
end
@app.call(env)
end
......
# frozen_string_literal: true
require 'spec_helper'
describe CsvBuilder do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::Jira::Middleware do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment