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