Maintenance: S/MIME RSpec test reliance improvement.

This commit is contained in:
Mantas 2020-06-19 13:29:40 +03:00 committed by Thorsten Eckel
parent ce91b8f181
commit c4f4deabde

View file

@ -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:|