Displaying 1 result from an estimated 1 matches for "contribution_spec".
2007 Jun 08
2
Testing two interdependent ActiveRecord models
...e my observations / questions:
1. Since there are two models, it doesn''t seem quite right to make a
unit test for this, does it?
2. There is an interaction between the two models. What is a good
way to test the interaction? Do I put some of the testing in
person_spec.rb and some in contribution_spec.rb? Or do I create some
sort of "interaction" spec?
3. I don''t think that an integration test makes sense, because I
don''t want to test the controller and views.
4. I wonder if mocks or stubs would make sense. I don''t think I need
to stub out a particula...