Created
October 18, 2011 13:37
-
-
Save dwaynemac/1295441 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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