From 088ea6386975f4933217bf166b753c3c1b659b88 Mon Sep 17 00:00:00 2001 From: Christophe De La Fuente Date: Wed, 12 Jun 2024 16:23:43 +0200 Subject: [PATCH] Pass the `unicode` flag and update the hash in specs --- spec/lib/net/ntlm_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/lib/net/ntlm_spec.rb b/spec/lib/net/ntlm_spec.rb index 247c70f..7114d3f 100644 --- a/spec/lib/net/ntlm_spec.rb +++ b/spec/lib/net/ntlm_spec.rb @@ -63,7 +63,7 @@ let(:user) { 'юзер' } it 'should return the correct ntlmv2 hash' do - expect(Net::NTLM::ntlmv2_hash(user, passwd, domain)).to eq(["ba3d357a20233dfc432b727537272bab"].pack("H*")) + expect(Net::NTLM::ntlmv2_hash(user, passwd, domain, { unicode: true })).to eq(["a0f4b914a37faeaee884b6b04a20faf0"].pack("H*")) end end