[rspec-users] Database clearing

Matt Wynne matt at mattwynne.net
Sat Sep 20 11:48:38 EDT 2008


On 20 Sep 2008, at 11:33, Todd Tyree wrote:

>
> We have a few lines of code in our features steps/env.rb that does  
> this
>
> 1. patch AR to stash each AR object created in an array
> 2. in an After do block, call destroy on each of those objects.
>
> We can probably share if anyone would like to see this.
>
>
> Please!

http://gist.github.com/11764

enjoy.

cheers,
Matt
----
http://blog.mattwynne.net
http://songkick.com

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.



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20080920/87fe0377/attachment.html>


More information about the rspec-users mailing list