Displaying 1 result from an estimated 1 matches for "0fa12702".
Did you mean:
0.012702
2008 Nov 06
3
Verifying some understanding about manipulating DB data in before/after callbacks in RSpec
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.
However, because we have "self.use_transactional_fixtures = true" set in
test_helper.rb, this code was never getting committed.
So, I just