<div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">My understanding is that specs _can_ be a form of documentation and a<br>source of &#39;howto&#39; hints for users - maybe even point them to
<br>convenience/performance ways of doing things (if not best practice) -</blockquote><div><br>this is a great goal ;-)<br>&nbsp;</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
nk we should maybe consider a directory structure:<br>./spec<br>./spec/developer</blockquote><div><br>This is not the directory structure currently used.&nbsp; At the moment the specs are residing in the &#39;test&#39; direrectory. The
<br>test directory closely matches the contents of the lib directory. One example will make things cleae:<br><br>lib/og.rb<br>lib/og/model.rb<br>lib/og/model/timestamped.rb<br>..<br><br>and<br><br>test/og.rb <br>test/og/model.rb
<br>test/og/model/timestamped.rb<br><br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Next, should spec files correspond to the file name containing the
<br>code they spec, or the class/module name?&nbsp;&nbsp;If you think the file name,<br>then what should be done with directory structures? Or should there be<br>no such ties that bind?</blockquote><div><br>see the above example.<br>
&nbsp;<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Related to the last issue: should file naming be &lt;...&gt;_spec.rb, or<br>without the _spec extension?
</blockquote><div><br>no _spec extension.<br>&nbsp;</div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Finally, if anyone specs an example or a benchmark should these be in
<br>separate directories?</blockquote><div><br><br>examples/blog/*<br>-&gt;<br>examples/blog/test/*<br><br>dunno why you would like to test a benchmark.<br><br></div></div><br>-g.<br><br><br>-- <br><a href="http://www.me.gr">
http://www.me.gr</a><br><a href="http://phidz.com">http://phidz.com</a><br><a href="http://blog.gmosx.com">http://blog.gmosx.com</a><br><a href="http://cull.gr">http://cull.gr</a><br><a href="http://www.joy.gr">http://www.joy.gr
</a><br><a href="http://nitroproject.org">http://nitroproject.org</a>