Thanks to both Pat and Scott for the first two comments. I&#39;m digesting what you are saying. I&#39;ll take these ideas (and any others that come) and try to summarize them in and upcoming post.<br><br>Thanks.<br>-Corey<br>
<br><div class="gmail_quote">On Dec 27, 2007 12:21 PM, Pat Maddox &lt;<a href="mailto:pergesu@gmail.com">pergesu@gmail.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">On Dec 27, 2007 8:30 AM, Corey Haines &lt;<a href="mailto:coreyhaines@gmail.com">coreyhaines@gmail.com</a>&gt; wrote:<br>&gt; I expected to see SharedExampleGroup &lt; ExampleGroup, but, instead, I saw
<br>&gt; SharedExampleGroup &lt; Module. This is incredibly confusing to me. I realize<br>&gt; that they don&#39;t even need to have any relationship to each other since they<br>&gt; get their shared functionality through the module ExampleGroupMethods, but
<br>&gt; it still seems a bit odd to me that they don&#39;t have a hierarchical<br>&gt; relationship.<br><br></div>Whenever you write an example, RSpec defines a method. &nbsp;Shared example<br>groups are basically sugary modules. &nbsp;They define examples - methods -
<br>that get included into your &quot;real&quot; example groups.<br><br>I can&#39;t say for sure if there&#39;s any deeper meaning to it other than<br>it&#39;s the simplest implementation. &nbsp;It would be possible to make<br>
SharedExampleGroup be a class, but then when an ExampleGroup uses<br>it_should_behave_like, it would have to list all the examples in the<br>SharedExampleGroup, define methods on itself that delegate to the<br>SEG...as opposed to just mixing in a module :)
<br><br>I admit I&#39;m pulling all of this out of my ass, btw, but I think it&#39;s<br>right. &nbsp;I&#39;m sure David will clarify soon.<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 clear="all"><br>-- <br><a href="http://www.coreyhaines.com">http://www.coreyhaines.com</a><br>The Internet&#39;s Premiere source of information about Corey Haines