entry.rb 249 B

123456789
  1. FactoryBot.define do
  2. # add custom attributes via:
  3. # mocked_entry = build(:ldap_entry)
  4. # mocked_entry['attr'] = [value, another_value]
  5. factory :ldap_entry, class: 'Net::LDAP::Entry' do
  6. initialize_with { new('dc=com') }
  7. end
  8. end