search for: person_6338

Displaying 1 result from an estimated 1 matches for "person_6338".

2010 Mar 24
2
Mock "Consent_6335" received unexpected message :marked_for_destruction? with (no args)
I have a mock object (Person) that is associated with another object (my_object) through a belongs_to association. When I check whether my_object is valid (my_object.should be_valid), I am getting an error like the following: Mock "Person_6338" received unexpected message :marked_for_destruction? with (no args) Checking the list of methods on the mock, "marked_for_destruction?" is not listed. Is this this something that i should expect to always stub? As a check, I added def @target.marked_for_destruction?...