trabajo-afectivo/spec/lib/import/otrs/user_factory_spec.rb

17 lines
412 B
Ruby
Raw Normal View History

2022-01-01 13:38:12 +00:00
# Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
require 'rails_helper'
require 'lib/import/factory_examples'
RSpec.describe Import::OTRS::UserFactory do
it_behaves_like 'Import::Factory'
it 'skips root@localhost' do
root_data = json_fixture('import/otrs/user/default')
expect(Import::OTRS::User).not_to receive(:new)
described_class.import([root_data])
end
end