[rspec-users] How to write specification for the *base* class API?
lists at ruby-forum.com
Tue Jul 15 09:22:12 EDT 2008
>> 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.
Documentation for developers of derived classes.
> Exactly. In all of my projects, I only have an inheritance tree of
> at most 3 levels deep.
It's not AR. I have 2 levels: Site1Scraper < BaseScraper.
There will be many SiteXScrapers implemented by several people.
>From your answers I conclude it's not possible (or at least not
recommended) to document abstract interface with RSpec.
Posted via http://www.ruby-forum.com/.
More information about the rspec-users