For model testing in Unit/test on ruby, I just test the DB saving of all the tables? Like this model def self.get_latest_answers_for_person(person_id, limit=10) return nil if person_id.nil? return Answer.find_by_sql(['' SELECT * FROM answers WHERE person_id = ? ORDER BY created_at DESC LIMIT ?; '', person_id, limit]) end I just test data in answer and users tables saving? Help! --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---