Commit 4d3b1d55 authored by Thong Kuah's avatar Thong Kuah

Merge branch 'frozen-string-enable-ee-spec' into 'master'

Enable frozen string for ee/spec

See merge request gitlab-org/gitlab!18167
parents 2cb2352d 09305bfe
......@@ -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