On Thu, Nov 6, 2008 at 1:32 PM, Wes Gamble <[EMAIL PROTECTED]> wrote:

> We had an after(:each) callback that looked like this:
>
>  PurchaseOrder.find(:all).each {|po|
> DraftInvoice.find_all_by_po_number(po.po_number).each {|di| di.destroy}}
>
> which we were hoping would reset some purchase order data in a certain way.
>

If you're running 'rake spec' then your test database will be completely
empty at the end, except for fixture data.

///ark
_______________________________________________
rspec-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to