Displaying 1 result from an estimated 1 matches for "twoword".
Did you mean:
twoord
2008 Jan 01
2
Testing and has_many Questions
To unit test the models'' functionality, I realized I need to call
save. That said, I wondered if save in test causes the model to be
stored in the database. If so, what should I do to avoid this
problem? Should I just call Model.destroy_all at the end?
Second, to test controllers'' functionality, is it possible to set the
params and session hash? If not, how do you test