Skip to content

Instantly share code, notes, and snippets.

@dwaynemac
Created October 18, 2011 13:37
Show Gist options
  • Save dwaynemac/1295441 to your computer and use it in GitHub Desktop.
Save dwaynemac/1295441 to your computer and use it in GitHub Desktop.
# pero agregué este spec en contacts y pasa
# así que debe ser algo de como CRm esta creando el contact,no?
it "should allow access to contacts" do
l = List.make
a = l.account
c = Contact.make(:lists => [l])
l.reload
l.contacts.should == [c]
a.lists.first.contacts.should == [c]
end
# después de haber creado algunos contacts desde CRM
a = Account.first
l = a.lists.first
c = Contact.last
c.lists.first == l # true
# pero
l.contacts # retorna []
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment