Re: [rspec-users] Test Design Question #1

2011-03-31 Thread Pat Maddox
What do you mean that it's "leaking" into the other test? If you have transactions turned on, then any records inserted into the db will be removed for the next test. My guess is that other tests just don't set up the required data...which is a problem with ActiveRecord callbacks and observers.

[rspec-users] Test Design Question #1

2011-03-30 Thread Curtis j Schofield
I have an model in rails with an after_create that generates another object (for the purpose of making an audit trail). In the unit test - i want to verify this behavior. This behaviour - in other tests is breaking some exceptions around (include) - since the creation of the new audit trail is le