I''m trying to write tests for a plugin that includes an active record model. This means that my plugin tests need to have access to a database, as well as a skeleton rails stack. Is there any resources out there that show how to achieve this? Thanks -- 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-/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 -~----------~----~----~----~------~----~------~--~---
On 18 Apr 2008, at 18:33, Alex Wayne wrote:> > I''m trying to write tests for a plugin that includes an active record > model. This means that my plugin tests need to have access to a > database, as well as a skeleton rails stack. > > Is there any resources out there that show how to achieve this?pluginaweek has a thing on that. unfortunately they seem to be down right now, but the google cached copy should sort you out: http://66.102.9.104/search?q=cache:l7hpl-xkv8sJ:www.pluginaweek.org/index.php%3Fs%3Dilib+plugin+test+rails_root&hl=en&ct=clnk&cd=3&client=safari Fred --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Frederick Cheung wrote:> On 18 Apr 2008, at 18:33, Alex Wayne wrote: > >> >> I''m trying to write tests for a plugin that includes an active record >> model. This means that my plugin tests need to have access to a >> database, as well as a skeleton rails stack. >> >> Is there any resources out there that show how to achieve this? > > pluginaweek has a thing on that. unfortunately they seem to be down > right now, but the google cached copy should sort you out: > > http://66.102.9.104/search?q=cache:l7hpl-xkv8sJ:www.pluginaweek.org/index.php%3Fs%3Dilib+plugin+test+rails_root&hl=en&ct=clnk&cd=3&client=safari > > FredGoogle to the rescue. Thanks for the link, that looks like just 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-/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 -~----------~----~----~----~------~----~------~--~---