2021-06-01 12:20:20 +00:00
|
|
|
# Copyright (C) 2012-2021 Zammad Foundation, http://zammad-foundation.org/
|
|
|
|
|
2017-11-21 21:50:03 +00:00
|
|
|
FactoryBot.define do
|
2017-04-19 10:09:54 +00:00
|
|
|
|
|
|
|
# add custom attributes via:
|
|
|
|
# mocked_entry = build(:ldap_entry)
|
|
|
|
# mocked_entry['attr'] = [value, another_value]
|
2020-11-24 16:20:57 +00:00
|
|
|
factory :ldap_entry, class: 'Net::LDAP::Entry' do
|
2019-03-27 09:01:36 +00:00
|
|
|
initialize_with { new('dc=com') }
|
2017-04-19 10:09:54 +00:00
|
|
|
end
|
|
|
|
end
|