On 2/14/07, Kenneth Liu
<ken.liu.pub-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:>
> Hi all -
>
> Suppose I have developed a module that is neither a model or controller
> (say, it parses a config file) in plain ruby (non-Rails), where should I
> put it within the rails application tree? Also, where would I put the
> corresponding unit tests so that rake will run them along with my Rails
> tests?
>
If it''s part of your biz logic, put it in /app/model (just
don''t
inherit from AR::Base).
If it''s an ''external'' library, add it to /lib, for
instance using
svn:externals. Libraries should have their own tests, completely
unrelated to your rails project.
Isak
> Thanks,
>
> Ken
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---