user_factory_spec.rb 335 B

1234567891011121314
  1. require 'rails_helper'
  2. require 'lib/import/factory_examples'
  3. RSpec.describe Import::OTRS::UserFactory do
  4. it_behaves_like 'Import::Factory'
  5. it 'skips root@localhost' do
  6. root_data = json_fixture('import/otrs/user/default')
  7. expect(Import::OTRS::User).to_not receive(:new)
  8. described_class.import([root_data])
  9. end
  10. end