diff --git a/spec/tools/fix_auth/auth_model_spec.rb b/spec/tools/fix_auth/auth_model_spec.rb index 5e202fa1b16..97fe8def1ad 100644 --- a/spec/tools/fix_auth/auth_model_spec.rb +++ b/spec/tools/fix_auth/auth_model_spec.rb @@ -5,7 +5,7 @@ require "fix_auth/models" describe FixAuth::AuthModel do - let(:v0_key) { CryptString.new(nil, "AES-128-CBC", "9999999999999999", "5555555555555555") } + let(:v0_key) { MiqPassword::Key.new("AES-128-CBC", Base64.encode64("9999999999999999"), Base64.encode64("5555555555555555")) } let(:v1_key) { MiqPassword.generate_symmetric } let(:pass) { "password" } let(:enc_v1) { MiqPassword.new.encrypt(pass, "v1", v1_key) }