mockTask = mock('intranet.it_tickets.app.models.task.Task','typeSafe');
<--- guessing at the Task component type here
taskDAO.create('{*}').returns(mockTask);
The above may not give you exactly what you're looking for, but the
key is that second line there. You need to tell the taskDAO mock that
it needs to return something when the create() method is called on it.
Hopefully the above at least gets you over the current hurdle.
Cheers,
Bob
> --
> You received this message because you are subscribed to the Google Groups "mxunit" group.
> To post to this group, send email to mxu...@googlegroups.com.
> To unsubscribe from this group, send email to mxunit+un...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/mxunit?hl=en.
>
--
Bob Silverberg
www.silverwareconsulting.com