Displaying 1 result from an estimated 1 matches for "save_compon".
Did you mean:
save_coupon
2008 Jun 11
3
help with test design
...the
adapter class. So far the adapter class has two main public methods
(plus a bunch of accessors to allow the dependency injection).
#discover_instruments
- this method calls into the 3rd party library and pulls out the
3rdPartyInstrument object and stores it off for further manipulation
#save_components
- this method permanently saves the 3rdPartyInstrument if it is a
FUTURE, or if it is a COMBINATION it iterates through each
sub-3rdPartyInstrument and saves it off
Using mocks and ruby''s brain-dead simple support for dependency
injection I have been able to mock out and verify...