[rspec-users] How to write specification for the *base* class API?
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>
> > 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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rspec-users