[rspec-users] How to write specification for the *base* class API?

Zach Dennis zach.dennis at gmail.com
Tue Jul 15 09:24:40 EDT 2008

On Tue, Jul 15, 2008 at 8:47 AM, Pat Maddox <pergesu at gmail.com> wrote:

> On Tue, Jul 15, 2008 at 5:17 AM, Piotr Wlodarek <lists at ruby-forum.com>
> wrote:
> > For the base class, it seems reasonable to specify public API with
> > RSpec.
> >
> > However, since we deal with a base class, methods are often empty (put
> > there just to show the API).
> What's the point of that?  This isn't Java.
Readability I would assume. Rspec does this in the base_formatter.rb and
Rails does this in some places as well I have noticed.

Zach Dennis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20080715/ab3a48d7/attachment.html>

More information about the rspec-users mailing list