[rspec-users] sharing specs in a subclass
dchelimsky at gmail.com
Wed Jan 23 00:02:04 EST 2008
On Jan 22, 2008 10:49 PM, Jonathan Linowes <jonathan at parkerhill.com> wrote:
> I've spec'd a class and they pass.
> Now I'd like to assure that any subclass of this class also passes
> the same specs.
> Any suggestions for a clever way to handle this?
> I'd prefer to keep the existing specs as is (eg instead of moving
> everything into shared behaviors, or doing something to all the
> 'describe' lines)
[Subclass1, Subclass2, BaseClass].each do |klass|
describe klass do
> rspec-users mailing list
> rspec-users at rubyforge.org
More information about the rspec-users