Persistence across steps in stories


I have divided my story into several steps.
I have a Given requirement in one file where I create (and save) an
object. Afterwards, I have a When requirement in another “steps_for”
file, which i suppossed to use this object.
Now this is not working for me (neither calling the objects variable,
nor with a Myclass.find(:first) ), whereas, if I create the object
inside of the same “steps_for” file, everything works allright.

I believe that it should be possible to call the objects along the whole
scenario independently from in which file they where created, but I
don’t get how.

Am I wrong?

CIT Jena GmbH
Computer- und Informationstechnik Jena GmbH
Braunstraße 16
04347 Leipzig

Fon 0341 - 23 46 18 0
Fax 0341 - 23 15 92 72
eMail [email protected]

Amtsgericht Leipzig HRB 21846
Umsatzsteuer ID DE 234250792
Geschäftsführer Harry Vögele

Diese e-Mail ist vertraulich und nur für den Empfänger bzw. den
Adressaten bestimmt. Wenn Sie nicht der rechtmäßige Empfänger dieser
e-Mail sind, ist es Ihnen nicht erlaubt die Inhalte der Mail
auszuwerten, zu verwenden oder weiterzuleiten. Wir bitten Sie in diesem
Fall, die e-Mail zu löschen.

This e-mail is confidential and intended only for the recipient or
organization to whom it is addressed. It may contain private or
confidential information and if you are not the intended recipient, you
must not copy, distribute or take any action in reliance on it. If you
have received this e-mail in error, please delete it.

© Copyright 2008 CIT Jena GmbH. Alle Rechte vorbehalten.