search for: derivatives_by_id

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

2006 Dec 15
3
Partial mock when a complex return value is required
...# LOADS of other stuff going on here that relies on stuff produced from the above loop ... end end And here is the offending spec: specify "should prefetch the future residuals" do TODO: ask rspec team about duplicating this logic to get a nice error message @derivatives_by_id[26149].should_not_receive (:cap_future_residuals_for_registration_date).and_return( CapFutureResidual.find_all_by_derivative_id_and_registration_year_and_re gistration_month(26149, 2003, 9) ) end Sorry for the car finance jargon!!! How can I get round this? Here is my attempt...