search for: request_args_with_finance_agreement

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

2007 Jul 10
2
Multiple calls to a class method
...at needs to call this either once or twice, depending on the contents of the form (one section of the form is rendered conditionally). So I had two specs for the case where the second form section is included: it "..." do Date.should_receive(:extract_from_rails_hash). with(REQUEST_ARGS_WITH_FINANCE_AGREEMENT [:vehicle], :registration_date). and_return(Date.new(2006, 12, 1)) # ... end it "..." do Date.should_receive(:extract_from_rails_hash). with(REQUEST_ARGS_WITH_FINANCE_AGREEMENT [:finance_agreement], :start_date). and_return(Date.new(2006, 12, 4)) # ... end In e...