Nelson Hsu wrote: > Thanks for the response! I just double checked the two models and > neither of them derive from ActiveRecord::Base.
Use 'script/generate model my_model' to generate models. They will come complete with empty unit tests, empty data fixtures, etc. Then, learn TDD using the "unit" tests, meaning the tests on the models - not the "functional" tests on the controllers! Anything your users can do to data thru the view and controllers, your unit tests should be able to do to the model objects thru their public methods. Only after you are proficient at the "unit" tests should you try more advanced and indirect testing! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

