sys_config_factory_spec.rb 465 B

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