Alexey Petrushin
2011-Sep-15 23:44 UTC
How to check custom model for compatibility with Rails
Hello, I created ODM for MongoDB and wondering is there any way to ensure it''s compatible with Rails? Maybe there''s some kind of shared examples for RSpec to run it against the model? Thanks! P.S. The model itself http://alexeypetrushin.github.com/mongodb_model -- Posted via http://www.ruby-forum.com/. -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Frederick Cheung
2011-Sep-16 08:57 UTC
Re: How to check custom model for compatibility with Rails
On Sep 16, 12:44 am, Alexey Petrushin <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> Hello, I created ODM for MongoDB and wondering is there any way > to ensure it''s compatible with Rails? > > Maybe there''s some kind of shared examples for RSpec to run it against > the > model?Sounds like you want ActiveModel / ActiveModel::Lint : http://yehudakatz.com/2010/01/10/activemodel-make-any-ruby-object-feel-like-activerecord/ Fred> > Thanks! > > P.S. > The model itselfhttp://alexeypetrushin.github.com/mongodb_model > > -- > Posted viahttp://www.ruby-forum.com/.-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Alexey Petrushin
2011-Sep-16 10:01 UTC
Re: How to check custom model for compatibility with Rails
Thanks, didn''t know about the Lint, exactly what I need. -- Posted via http://www.ruby-forum.com/. -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.