[rspec-users] Test Design Question #1

Curtis j Schofield curtis.schofield at gmail.com
Wed Mar 30 12:31:31 EDT 2011

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 leaking into this other unit test.

In the controller test this behavior doesn't matter - in the
integration test i do want this behavior.

What am i doing wrong here?

make haste slowly \
festina lente  \
mobile  +1_415_632_6001
curtis.schofield at gmail.com

More information about the rspec-users mailing list