Re: [rspec-users] Multiple calls to a class method

2007-07-10 Thread Ashley Moran
On 10 Jul 2007, at 13:16, David Chelimsky wrote: > This is pretty standard in mocking frameworks. In fact, your > frustration was Jim Weirich's motivation for writing Flexmock, so you > may want to give that framework a shot. > This tells the Date class object to ignore all extract_from_rails_

Re: [rspec-users] Multiple calls to a class method

2007-07-10 Thread David Chelimsky
On 7/10/07, Ashley Moran <[EMAIL PROTECTED]> wrote: > Hi > > Just wrote myself a Date.extract_from_rails_hash to handle parsing > the "date(1i)", "date(2i)" parameters created in the controller > params. I've got a method that needs to call this either once or > twice, depending on the contents of

[rspec-users] Multiple calls to a class method

2007-07-10 Thread Ashley Moran
Hi Just wrote myself a Date.extract_from_rails_hash to handle parsing the "date(1i)", "date(2i)" parameters created in the controller params. I've got a method that needs to call this either once or twice, depending on the contents of the form (one section of the form is rendered conditio