Story Runner: DRYing items used in many stories

The number of stories I have is growing and I’m writing the following
step
long hand in each story.

Given 'a user named', 'Andy', 'Watts' do |first_name, family_name|
  @email = first_name + '@test.lan'
  create_user( :first_name => first_name, :family_name => 

family_name,
:email => @email )
end

It’s great that this step is DRY for scenarios within a story.
I’m now wondering if it could be DRY across stories also.

Adding it once in stories/all.rb seems natural, but I couldn’t get it to
work.
Is this possible? or perhaps a new feature request.

Wow, if reusable scenario steps were defined elsewhere, the whole story
file
becomes accessible to non-coders…currently I would remove the guts
from
steps in the first scenario before sharing the story file with
non-coders.

Thanks again for a great set of tools.
Andy


View this message in context:
http://www.nabble.com/Story-Runner%3A-DRYing-items-used-in-many-stories-tf4620490.html#a13195899
Sent from the rspec-users mailing list archive at Nabble.com.

Just realized step code is DRY across stories within the same file.
(in addition to being DRY across scenarios)

I thought it best to organize stories, each in their own separate file.
My question then is about shared step code for use in many files.

Many Thanks
Andy

View this message in context:
http://www.nabble.com/Story-Runner%3A-DRYing-items-used-in-many-stories-tf4620490.html#a13196191
Sent from the rspec-users mailing list archive at Nabble.com.