My integration tests relied on fixtures, and since my models have a significant amount of validation (and hence need valid data unless I save without validation), this has made setup easy.
With stories however, I'm wondering what the recommended approach is. Mocks are out I assume, since the point is testing the stack, but are fixtures out too? Should we be meeting our more complex or repetitive setup needs by treating it as plain ruby code that needs refactoring via regular Ruby/OO techniques (Object Mother et al)?
A typical scenario for me might involve a couple of users with different roles, plus a collection of other collaborating objects.
Thanks
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ rspec-users mailing list [email protected] http://rubyforge.org/mailman/listinfo/rspec-users
