On 8/15/07, aslak hellesoy <[EMAIL PROTECTED]> wrote:
> On 8/15/07, Scott Taylor <[EMAIL PROTECTED]> wrote:
> >
> > Mocha's mock/stub framework has the ability to stub all methods on a
> > mock given.  Does RSpec's mocking framework have this ability?
>
> No

Err, actually it is possible. (I first thought about "stub methods on
all instances of a class" which mocha does, but RSpec doesn't).

mock("person", :null_object => true)

Is this what you're after? See RDoc for details.

Aslak

>
> > And
> > if not, is there some reason it shouldn't be implemeneted?
> >
>
> Not that I can think of.
>
> Aslak
>
> > Regards,
> >
> > Scott
> >
> > _______________________________________________
> > rspec-users mailing list
> > [email protected]
> > http://rubyforge.org/mailman/listinfo/rspec-users
> >
>
_______________________________________________
rspec-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to