Displaying 1 result from an estimated 1 matches for "find_all_by_po_numb".
Did you mean:
find_all_by_po_number
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 want to verify:
Attempting to...