[rspec-users] Stubbing all methods
aslak.hellesoy at gmail.com
Tue Aug 14 19:03:13 EDT 2007
On 8/15/07, aslak hellesoy <aslak.hellesoy at gmail.com> wrote:
> On 8/15/07, Scott Taylor <mailing_lists at railsnewbie.com> 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?
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.
> > And
> > if not, is there some reason it shouldn't be implemeneted?
> Not that I can think of.
> > Regards,
> > Scott
> > _______________________________________________
> > rspec-users mailing list
> > rspec-users at rubyforge.org
> > http://rubyforge.org/mailman/listinfo/rspec-users
More information about the rspec-users