[rspec-users] how do i remove duplication from my steps in story runner?

Perryn Fowler pezlists at gmail.com
Thu Apr 24 00:32:28 EDT 2008


> 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

brilliant, worked like a charm thanks :)

If you will indulge a ruby newb question for a moment - how could I
have worked this out for myself?


More information about the rspec-users mailing list