On Monday, August 6, 2012 12:29:04 AM UTC-7, 陈若涵 wrote: > > Just like the [factory_girl](http://rubygems.org/gems/factory_girl) do. > But factory_girl doesn't fully compatible with Sequel( When using > FactoryGirl.create() ). > > Or any other gems? > You could use this approach:
http://mikegriffin.ie/blog/20101013-using-factorygirl-with-sinatra-and-the-sequel-gem/ IIRC, defining your own save! method also works. If you are looking for alternatives to factory_girl, there's https://github.com/mjijackson/sequel-factory Jeremy -- You received this message because you are subscribed to the Google Groups "sequel-talk" group. To view this discussion on the web visit https://groups.google.com/d/msg/sequel-talk/-/RsbF53ag0tIJ. 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.
