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> def your_helper_method</div><div> # i should have access to everything I need</div>
<div> 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 <<a href="mailto:pezlists@gmail.com">pezlists@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="Ih2E3d">> Another attack.<br>
><br>
> Then("two nested divs and an? $type will be displayed") do | type |<br>
><br>
> response.should have_tag("div") do<br>
> with_tag("div")<br>
> end<br>
> response.should have_tag(type == 'image' ? 'img' : type)<br>
> end<br>
><br>
<br>
</div>Thanks for the cool idea Rick, but unfortunately that only helps with<br>
my contrived little example -<br>
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>