On Jun 28, 6:37 am, pn <[email protected]> wrote: > Hello. Can anyone point me to a tutorial on unit testing Sequel > models? I see that Factory Girl and fixture_dependencies are Sequel > aware, but it's not immediately clear to me how to set up tests.
I do unit testing of Sequel models in all of my apps. I use fixture_dependencies in the largest app, but the other ones I just have methods to create test objects, or create them directly. I run all of my unit tests inside a transaction. There's code in fixture dependencies to show how to use transactions in Rspec. Unit testing Sequel models is similar to unit testing ActiveRecord or DataMapper models, you are just checking that the returned values and/ or side effects of the methods are what you expect. Jeremy --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sequel-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/sequel-talk?hl=en -~----------~----~----~----~------~----~------~--~---
