trabajo-afectivo/spec/factories/vendor/net/ldap/entry.rb

12 lines
261 B
Ruby
Raw Normal View History

FactoryGirl.define do
# add custom attributes via:
# mocked_entry = build(:ldap_entry)
# mocked_entry['attr'] = [value, another_value]
factory :ldap_entry, class: Net::LDAP::Entry do
initialize_with do
new('dc=com')
end
end
end