Fix contacts spec - default order on the association means we need to reload after adding one
This commit is contained in:
parent
b2bce9e1b2
commit
2d9a709212
1 changed files with 3 additions and 2 deletions
|
|
@ -89,17 +89,18 @@ describe Contact do
|
|||
@bob = bob
|
||||
@eve = eve
|
||||
@bob.aspects.create(:name => 'next')
|
||||
@bob.aspects(true)
|
||||
@people1 = []
|
||||
@people2 = []
|
||||
|
||||
1.upto(5) do
|
||||
person = Factory(:person)
|
||||
bob.contacts.create(:person => person, :aspects => [bob.aspects.first])
|
||||
@bob.contacts.create(:person => person, :aspects => [@bob.aspects.first])
|
||||
@people1 << person
|
||||
end
|
||||
1.upto(5) do
|
||||
person = Factory(:person)
|
||||
bob.contacts.create(:person => person, :aspects => [bob.aspects.last])
|
||||
@bob.contacts.create(:person => person, :aspects => [@bob.aspects.last])
|
||||
@people2 << person
|
||||
end
|
||||
#eve <-> bob <-> alice
|
||||
|
|
|
|||
Loading…
Reference in a new issue