From c4f4deabdeecc2779fd744bbb95bfe7fec252be3 Mon Sep 17 00:00:00 2001 From: Mantas Date: Fri, 19 Jun 2020 13:29:40 +0300 Subject: [PATCH] Maintenance: S/MIME RSpec test reliance improvement. --- spec/system/ticket/zoom_spec.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/spec/system/ticket/zoom_spec.rb b/spec/system/ticket/zoom_spec.rb index 1e4dba77b..a190de21c 100644 --- a/spec/system/ticket/zoom_spec.rb +++ b/spec/system/ticket/zoom_spec.rb @@ -599,13 +599,17 @@ RSpec.describe 'Ticket zoom', type: :system do let(:smime_config) { {} } - before do + def authenticate + Setting.set('smime_integration', true) + Setting.set('smime_config', smime_config) create(:ticket_article, ticket: ticket, from: customer.email) create(:smime_certificate, :with_private, fixture: system_email_address) create(:smime_certificate, fixture: sender_email_address) + + agent end shared_examples 'security defaults example' do |sign:, encrypt:|