I assume you've followed the Wiki instructions about how to set up
Cucumber with Rails:
http://github.com/aslakhellesoy/cucumber/wikis (I should move this to
a separate Rails page)
Then you should have a steps/env.rb file that looks like this:
http://github.com/aslakhellesoy/cucumber/tree/master
Hi,
, aslak hellesoy wrote (sometime today):
at_exit do
..
end
If I had a number of steps, stories and runners where would I put the
kernal at_exit method?
At the last 'Then' in a step file?
No, never inside a step. You should only register each at_exit hook
once.
At the bottom
Hi,
>, aslak hellesoy wrote (sometime today):
> at_exit do
>..
> end
If I had a number of steps, stories and runners where would I put the
kernal at_exit method?
At the last 'Then' in a step file? At the bottom of that particular
runner file? I assume there would be numerous at_exit method
On Tue, Sep 2, 2008 at 4:53 PM, Matt Wynne <[EMAIL PROTECTED]> wrote:
> On 2 Sep 2008, at 15:24, aslak hellesoy wrote:
>
>> On Tue, Sep 2, 2008 at 3:50 PM, Matt Wynne <[EMAIL PROTECTED]> wrote:
>>>
>>> Is there a way right now to run some setup code once after environment.rb
>>> has loaded but befo
On 2 Sep 2008, at 15:24, aslak hellesoy wrote:
On Tue, Sep 2, 2008 at 3:50 PM, Matt Wynne <[EMAIL PROTECTED]> wrote:
Is there a way right now to run some setup code once after
environment.rb
has loaded but before all the scenarios are run?
Yes. Just use Ruby :-)
Put it at the "main level"
On Tue, Sep 2, 2008 at 3:50 PM, Matt Wynne <[EMAIL PROTECTED]> wrote:
> Is there a way right now to run some setup code once after environment.rb
> has loaded but before all the scenarios are run?
Yes. Just use Ruby :-)
Put it at the "main level" in one of your ruby files under steps/
> And how
Is there a way right now to run some setup code once after
environment.rb has loaded but before all the scenarios are run?
And how about a teardown after everything's done?
cheers,
Matt
http://blog.mattwynne.net
http://songkick.com
In case you wondered: The opinions expressed in this ema