2009/12/8 Sam <
sam.h....@gmail.com>:
I'm a bit short of time, but it looks to me like the "ears" are being
loaded from the database in the following line :-
emailed_association_requests.to_send.each do |ear|
This means that although the objects will have the same id (i.e.
database id), they will not have the same object_id i.e. they are not
the same *instances* as the ones in the tests.
One way to solve this would be to stub the
"emailed_association_requests" method to return the instances from the
tests.
I hope that helps.
Cheers, James.