sys_config_factory_spec.rb 542 B

123456789101112131415161718192021222324
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. require 'rails_helper'
  3. require 'lib/import/import_factory_examples'
  4. RSpec.describe Import::OTRS::SysConfigFactory do
  5. it_behaves_like 'Import factory'
  6. it 'stores default postmaster values' do
  7. value = 'new'
  8. settings = [
  9. {
  10. 'Key' => 'PostmasterDefaultState',
  11. 'Value' => value
  12. }
  13. ]
  14. described_class.import(settings)
  15. expect(described_class.postmaster_default_lookup(:state_default_create)).to eq(value)
  16. end
  17. end