<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Thanks for asking this question. This is exactly what I was going to write, but you beat me to it!<div><br class="webkit-block-placeholder"></div><div>(Sorry for the top-post; just following the last responder.)</div><div><br class="webkit-block-placeholder"></div><div>cr</div><div><br><div><div>On Feb 25, 2008, at 3:30 AM, Matthijs Langenberg wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Question is, would you duplicate the specs for all the classes that include a certain module (through shared behaviour for example), or would you use one set of specs for just the module, and specify that a class should include that module?<br> <br><div class="gmail_quote">On Sun, Feb 24, 2008 at 12:19 AM, Pat Maddox <<a href="mailto:pergesu@gmail.com">pergesu@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"> <div><div></div><div class="Wj3C7c">On Thu, Feb 21, 2008 at 8:09 AM, Chuck Remes <<a href="mailto:cremes.devlist@mac.com">cremes.devlist@mac.com</a>> wrote:<br> > While practicing BDD on my first-ever BDD project, I have come to a<br> > point where it makes sense to change my original class to an abstract<br> > class and create one (or more) concrete subclasses that implement a<br> > specific method. What is the right way to restructure the tests in<br> > this scenario? Do I leave the existing tests in place and just create<br> > a new spec file that instantiates and tests the concrete subclass?<br> ><br> > I think I can continue to instantiate my "abstract" parent as long as<br> > I don't go near the behavior that will be defined by the concrete<br> > subclasses. Is that the right thing to do?<br> ><br> > Thanks for any hints.<br> ><br> > cr<br> > _______________________________________________<br> > rspec-users mailing list<br> > <a href="mailto:rspec-users@rubyforge.org">rspec-users@rubyforge.org</a><br> > <a href="http://rubyforge.org/mailman/listinfo/rspec-users" target="_blank">http://rubyforge.org/mailman/listinfo/rspec-users</a><br> ><br> <br> </div></div>I think that shared example groups might be useful.<br> <font color="#888888"><br> Pat<br> </font><div><div></div><div class="Wj3C7c">_______________________________________________<br> rspec-users mailing list<br> <a href="mailto:rspec-users@rubyforge.org">rspec-users@rubyforge.org</a><br> <a href="http://rubyforge.org/mailman/listinfo/rspec-users" target="_blank">http://rubyforge.org/mailman/listinfo/rspec-users</a><br> </div></div></blockquote></div><br> _______________________________________________<br>rspec-users mailing list<br><a href="mailto:rspec-users@rubyforge.org">rspec-users@rubyforge.org</a><br>http://rubyforge.org/mailman/listinfo/rspec-users</blockquote></div><br></div></body></html>