You should be able to make your own module of helpers and include it into
Spec::Story::World
module Spec::Story::World
  def your_helper_method
     # i should have access to everything I need
  end
end

Zach

On Tue, Apr 22, 2008 at 10:30 PM, Perryn Fowler <[EMAIL PROTECTED]> wrote:

> >  Another attack.
> >
> >  Then("two nested divs and an? $type will be displayed") do | type |
> >
> >      response.should have_tag("div") do
> >            with_tag("div")
> >      end
> >      response.should have_tag(type == 'image' ? 'img' : type)
> >   end
> >
>
> Thanks for the cool idea Rick, but unfortunately that only helps with
> my contrived little example -
>  for my real app I really do need to be able to factor out some helper
> methods...
> _______________________________________________
> rspec-users mailing list
> rspec-users@rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>



-- 
Zach Dennis
http://www.continuousthinking.com
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to