user_factory_spec.rb 412 B

12345678910111213141516
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. require 'rails_helper'
  3. require 'lib/import/factory_examples'
  4. RSpec.describe Import::OTRS::UserFactory do
  5. it_behaves_like 'Import::Factory'
  6. it 'skips root@localhost' do
  7. root_data = json_fixture('import/otrs/user/default')
  8. expect(Import::OTRS::User).not_to receive(:new)
  9. described_class.import([root_data])
  10. end
  11. end