You should be able to make your own module of helpers and include it into Spec::Story::World<div><br></div><div>module Spec::Story::World</div><div>&nbsp;&nbsp;def your_helper_method</div><div>&nbsp;&nbsp; &nbsp; # i should have access to everything I need</div>
<div>&nbsp;&nbsp;end</div><div>end</div><div><br></div><div>Zach</div><div><br><div class="gmail_quote">On Tue, Apr 22, 2008 at 10:30 PM, Perryn Fowler &lt;<a href="mailto:pezlists@gmail.com">pezlists@gmail.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="Ih2E3d">&gt; &nbsp;Another attack.<br>
&gt;<br>
&gt; &nbsp;Then(&quot;two nested divs and an? $type will be displayed&quot;) do | type |<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp;response.should have_tag(&quot;div&quot;) do<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;with_tag(&quot;div&quot;)<br>
&gt; &nbsp; &nbsp; &nbsp;end<br>
&gt; &nbsp; &nbsp; &nbsp;response.should have_tag(type == &#39;image&#39; ? &#39;img&#39; : type)<br>
&gt; &nbsp; end<br>
&gt;<br>
<br>
</div>Thanks for the cool idea Rick, but unfortunately that only helps with<br>
my contrived little example -<br>
&nbsp;for my real app I really do need to be able to factor out some helper<br>
methods...<br>
<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>Zach Dennis<br><a href="http://www.continuousthinking.com">http://www.continuousthinking.com</a>
</div>