spec/spec_helper.rb in socialcast-1.3.8 vs spec/spec_helper.rb in socialcast-1.3.9
- old
+ new
@@ -30,11 +30,11 @@
eval("$#{stream} = #{stream.upcase}")
end
return result, exit_status
end
- def create_entry(entry_attributes)
- Net::LDAP::Entry.new("dc=example,dc=com").tap do |e|
+ def create_entry(cn, entry_attributes)
+ Net::LDAP::Entry.new("cn=#{cn},dc=example,dc=com").tap do |e|
entry_attributes.each_pair do |attr, value|
e[attr] = value
end
end
end