Mocking in Specter?

0 views
Skip to first unread message

maplpro

unread,
May 20, 2008, 4:44:20 PM5/20/08
to Specter BDD Framework
Is there out of the box possibility to 'mock and stub' in Specter?

Cedric Vivier

unread,
May 20, 2008, 4:48:30 PM5/20/08
to specter-...@googlegroups.com
Hi!

For very simple mocking/stubbing (as in - you want to compile your specs without the actual objects implemented), you can use the subject macro available in Specter as described here :
http://specter.sourceforge.net/examples/MiniBarSpec.boo.html

Of course if you want more advanced mocking features it's kinda out of scope for Specter and you should use one of the mock frameworks available.

Regards,

Mike Plavsky

unread,
May 21, 2008, 6:05:55 AM5/21/08
to Specter BDD Framework
Got it. Thanks a lot!

On May 21, 12:48 am, "Cedric Vivier" <cedr...@neonux.com> wrote:
> Hi!
>
> For very simple mocking/stubbing (as in - you want to compile your specs
> without the actual objects implemented), you can use the subject macro
> available in Specter as described here :http://specter.sourceforge.net/examples/MiniBarSpec.boo.html
>
> Of course if you want more advanced mocking features it's kinda out of scope
> for Specter and you should use one of the mock frameworks available.
>
> Regards,
>
>
>
> On Tue, May 20, 2008 at 10:44 PM, maplpro <supermapl...@gmail.com> wrote:
>
> > Is there out of the box possibility to 'mock and stub' in Specter?- Hide quoted text -
>
> - Show quoted text -
Reply all
Reply to author
Forward
0 new messages