[rspec-users] how to avoid tests removing data that my migrations put in?

Mark Wilden mark at mwilden.com
Tue Nov 4 19:37:00 EST 2008

On Tue, Nov 4, 2008 at 4:26 PM, Pat Maddox <pergesu at gmail.com> wrote:

> aslak's right though in that case too.  In your spec_helper, just loop
> over the tables and delete everything, then insert the seed data you
> want, and it should be good to go.

But then Ashley's comment applies: you've got the same facts in two places.
Best thing is to avoid the dependency, if at all possible.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20081104/0df956d1/attachment.html>

More information about the rspec-users mailing list