# Re: Asserts in aggregate objects called by a Test::Unit::Tes

**URL:** <https://www.ruby-forum.com/t/re-asserts-in-aggregate-objects-called-by-a-test-tes/94684>\
**Category:** Ruby\
**Created:** [May 10, 2006, 11:28pm UTC](https://www.ruby-forum.com/t/re-asserts-in-aggregate-objects-called-by-a-test-tes/94684 "2006-05-10T23:28:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andrew\_Tanner](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/8dc957/32.png) [@Andrew\_Tanner](https://www.ruby-forum.com/u/Andrew_Tanner)\
**Post date:** [May 10, 2006, 11:28pm UTC](https://www.ruby-forum.com/t/re-asserts-in-aggregate-objects-called-by-a-test-tes/94684/1 "2006-05-10T23:28:32Z")

</div>

Thanks for the response Eric. I looked up add\_assert but it didn’t  
really help that much since the aggregate object (SubAssertObj) is in a  
diff context then the original TestStuff testcase.

However I did do something similar to your other suggestion. I threw the  
validation code in a module and I’m now include’ing in my individual  
testcases as needed.

Thanks again.
