Commit ffac8488 authored by Thong Kuah's avatar Thong Kuah

Merge branch 'frozen-string-enable-spec-lib-gitlab-auth' into 'master'

Enable frozen string for lib/gitlab/auth

See merge request gitlab-org/gitlab!19844
parents 6bb277fc d8d22a77
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::Auth::LDAP::AuthHash do
......@@ -91,7 +93,7 @@ describe Gitlab::Auth::LDAP::AuthHash do
let(:given_uid) { 'uid=John Smith,ou=People,dc=example,dc=com' }
before do
raw_info[:uid] = ['JOHN']
raw_info[:uid] = [+'JOHN']
end
it 'enabled the username attribute is lower cased' do
......
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::Auth::LDAP::Person do
......@@ -135,7 +137,7 @@ describe Gitlab::Auth::LDAP::Person do
let(:username_attribute) { 'uid' }
before do
entry[username_attribute] = 'JOHN'
entry[username_attribute] = +'JOHN'
@person = described_class.new(entry, 'ldapmain')
end
......
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