<div dir="ltr">Sure... if you want to do stuff like:<br><br>require File.expand_path(File.join(File.dirname(__FILE__), &quot;..&quot;, &quot;spec_helper&quot;)))<br><br>This is super-unDRY and I&#39;d like to be able to have this happen automatically without having to do spec -O spec/spec.opts ...<br>
<br>Is there a reason not to try and find spec/spec.opts and load it automatically?<br><br>-- Yehuda<br><br><div class="gmail_quote">On Mon, Aug 25, 2008 at 12:22 PM, Pat Maddox <span dir="ltr">&lt;<a href="mailto:pergesu@gmail.com">pergesu@gmail.com</a>&gt;</span> 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 Mon, Aug 25, 2008 at 2:41 PM, Yehuda Katz &lt;<a href="mailto:wycats@gmail.com">wycats@gmail.com</a>&gt; wrote:<br>

&gt; I spoke to dchelimsky this morning and am bringing our conversation to the<br>
&gt; list.<br>
&gt;<br>
&gt; Effectively, I asked why we don&#39;t automatically require spec/spec.opts<br>
&gt; (which I wanted in order to be able to yank require &#39;spec_helper&#39; from my<br>
&gt; specs, because require &#39;spec_helper&#39; and require &#39;../spec_helper&#39; results in<br>
&gt; two requires, which sucks).<br>
<br>
</div>Doesn&#39;t File.expand_path solve this issue?<br>
<br>
Pat<br>
_______________________________________________<br>
rspec-devel mailing list<br>
<a href="mailto:rspec-devel@rubyforge.org">rspec-devel@rubyforge.org</a><br>
<a href="http://rubyforge.org/mailman/listinfo/rspec-devel" target="_blank">http://rubyforge.org/mailman/listinfo/rspec-devel</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Yehuda Katz<br>Developer | Engine Yard<br>(ph) 718.877.1325<br>
</div>