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]
|
|
|
|
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
|