Hello, I''m currently creating my first plugin in rails. It creates a model and a mixin for controllers. For testing purposes I need a test controller (sort of a mock) to which I can include my mixin and test wether the mixed in methods work. My problem is in order to do this I either have to setup my test enviorment in a rails app outside of my plugin or I have to replicate a whole rails environment in my plugin so that the standard routing stuff and everything works. Is this the normal procedure or is there an easier way? I searched the group and made a search on the net but I have not found a satisfactory answer yet. Any help is greatly appreciated. Regards musk --~--~---------~--~----~------------~-------~--~----~ 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 Nov 22, 9:26 pm, musk <mailtolan...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:> Hello, > > I''m currently creating my first plugin in rails. It creates a model > and a mixin for controllers. For testing purposes I need a test > controller (sort of a mock) to which I can include my mixin and test > wether the mixed in methods work. My problem is in order to do this I > either have to setup my test enviorment in a rails app outside of my > plugin or I have to replicate a whole rails environment in my plugin > so that the standard routing stuff and everything works. > Is this the normal procedure or is there an easier way? > I searched the group and made a search on the net but I have not found > a satisfactory answer yet. Any help is greatly appreciated. >In the past i''ve done the whole fake up a whole rails environment thing, but you can also do stuff like http://www.alexyoung.org/articles/show/44/rails_plugin_testing_guide 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Maybe Matching Threads
- help with read.csv() for files with different number of columns
- help with read.csv() for files with different number of columns
- help with read.csv() for files with different number of columns
- help with read.csv() for files with different number of columns
- help with read.csv() for files with different number of columns