From 7a395989b7dad5e287196c349e4254ff4cf3e2a0 Mon Sep 17 00:00:00 2001 From: Matt Jankowski Date: Sat, 29 Apr 2023 20:28:52 -0400 Subject: [PATCH] Enable local account key generation spec (#24728) --- spec/models/account_spec.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/models/account_spec.rb b/spec/models/account_spec.rb index 2e2ca72748..458b2ce52a 100644 --- a/spec/models/account_spec.rb +++ b/spec/models/account_spec.rb @@ -951,10 +951,10 @@ RSpec.describe Account, type: :model do end context 'when is local' do - # Test disabled because test environment omits autogenerating keys for performance - xit 'generates keys' do + it 'generates keys' do account = Account.create!(domain: nil, username: Faker::Internet.user_name(separators: ['_'])) - expect(account.keypair.private?).to be true + expect(account.keypair).to be_private + expect(account.keypair).to be_public end end