Hi,
is there already documentation on this?
regards,
Wim
Dale King-2 wrote:
What he probably doesn't realize (and this seems to be a big stumbling block
for new users) is that you can break your expectations up into multiple
context.checking calls. I know there have been several people come here with
the same issue.
The cheat sheet documentation really needs to be updated to make this clear.
I submitted a JIRA issue for it.
On Nov 26, 2007 2:59 PM, Nat Pryce <nat.pryce@gmail.com> wrote:
> On 26/11/2007, Harald Ueland <harald@hueland.net> wrote:
> > Is there a way to change return values for expectations after they are
> set?
>
> No.
>
> > I want to do this for some tests where 99 % of the test methods use
> predefined
> > expectations set up from setUp(), but a few needs other return values.
> >
> > How can this be done without calling a setup method in all the tests?
>
> It cannot. That's because pulling the common setup into a clearly
> named utility method makes tests *much* easier to understand.
>
> --Nat
>
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
>
>
http://xircles.codehaus.org/manage_email>
>
--
Dale King