Commit e7fdb8b6 authored by Thong Kuah's avatar Thong Kuah

Fix frozen string errors in specs

parent cad2a185
...@@ -28,7 +28,7 @@ describe EE::Gitlab::Auth::LDAP::Sync::Proxy do ...@@ -28,7 +28,7 @@ describe EE::Gitlab::Auth::LDAP::Sync::Proxy do
end end
context 'with a valid LDAP group that contains ASCII-8BIT-encoded Unicode data' do context 'with a valid LDAP group that contains ASCII-8BIT-encoded Unicode data' do
let(:username) { 'Méräy'.force_encoding('ASCII-8BIT') } let(:username) { (+'Méräy').force_encoding('ASCII-8BIT') }
let(:dns) { [user_dn(username)] } let(:dns) { [user_dn(username)] }
it 'return members DNs' do it 'return members DNs' do
......
...@@ -38,6 +38,6 @@ describe Gitlab::Auth::OAuth::AuthHash do ...@@ -38,6 +38,6 @@ describe Gitlab::Auth::OAuth::AuthHash do
end end
def ascii(text) def ascii(text)
text.force_encoding(Encoding::ASCII_8BIT) text.dup.force_encoding(Encoding::ASCII_8BIT)
end end
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