search for: capid26149

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

2006 Dec 18
2
should_receive and multiple return values
...ureResidual.should_receive (:registration_date_to_band_year_and_month).with(Date.new(2003, 9, 30)).and_return(2003, 9) CapFutureResidual.should_receive (:registration_date_to_band_year_and_month).with(Date.new(2005, 3, 1)).and_return(2005, 3) controller.parse_parameters( { :capid26149 => "rd2003-09-30,mi40000,ft15", :capid30125 => "rd2005-03-01,mi73825,ft42" } ) end But it doesn''t because and_return is setting up multiple method calls, not multiple return values. I don''t imagine multiple return values are used that ofte...