> 2) To test acts_as_list, test the behavior of it (or test the > inclusion of that one module in the appropriate class) > > I don't know what "that one module is" or how to test its inclusion in > a class though... but otherwise thanks guys!
If it were me I wouldn't test for the inclusion of the class. I'd test to the behavior only. Test that when you move an item around in the list the results are what you expect. That way when you decide to switch to "acts_as_list_on_steroids_fu" which implements the same behavior but adds all kinds of other goodies your tests will still pass and more importantly they pass for the right reason. -philip -- 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.

