[rspec-users] Cucumber: Before(:all)
aslak.hellesoy at gmail.com
Tue Sep 2 10:24:31 EDT 2008
On Tue, Sep 2, 2008 at 3:50 PM, Matt Wynne <matt at mattwynne.net> 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 about a teardown after everything's done?
User.create! :name => 'matt'
Would this work for you?
> In case you wondered: The opinions expressed in this email are my own and do
> not necessarily reflect the views of any former, current or future employers
> of mine.
> rspec-users mailing list
> rspec-users at rubyforge.org
More information about the rspec-users