Maintenance: Capybara S/Mime tests improvements
This commit is contained in:
parent
97fc711370
commit
08ef240843
1 changed files with 2 additions and 4 deletions
|
@ -25,6 +25,8 @@ RSpec.describe 'Ticket Create', type: :system do
|
||||||
context 'S/MIME', authenticated_as: :authenticate do
|
context 'S/MIME', authenticated_as: :authenticate do
|
||||||
def authenticate
|
def authenticate
|
||||||
Setting.set('smime_integration', true)
|
Setting.set('smime_integration', true)
|
||||||
|
Setting.set('smime_config', smime_config) if defined?(smime_config)
|
||||||
|
|
||||||
current_user
|
current_user
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -193,10 +195,6 @@ RSpec.describe 'Ticket Create', type: :system do
|
||||||
|
|
||||||
let(:smime_config) { {} }
|
let(:smime_config) { {} }
|
||||||
|
|
||||||
before do
|
|
||||||
Setting.set('smime_config', smime_config)
|
|
||||||
end
|
|
||||||
|
|
||||||
shared_examples 'security defaults example' do |sign:, encrypt:|
|
shared_examples 'security defaults example' do |sign:, encrypt:|
|
||||||
|
|
||||||
it "security defaults sign: #{sign}, encrypt: #{encrypt}" do
|
it "security defaults sign: #{sign}, encrypt: #{encrypt}" do
|
||||||
|
|
Loading…
Reference in a new issue