Hi all, I''m trying to write a functional test for an action which does not render a template (calls render :nothing => true). When I run the test it raises a "Missing Template" error. I''m a bit confused by this as I don''t think it should be trying to render any template, and the action works without errors when manually tested. Any ideas how to fix this? Many thanks --~--~---------~--~----~------------~-------~--~----~ 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 Tue, Apr 22, 2008 at 1:47 PM, Adam <adampennycuick-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Hi all, > > I''m trying to write a functional test for an action which does not > render a template (calls render :nothing => true). When I run the test > it raises a "Missing Template" error. I''m a bit confused by this as I > don''t think it should be trying to render any template, and the action > works without errors when manually tested. Any ideas how to fix this? > > Many thanksIt''s always worked fine for me. In my tests I also put a test that template == nil. If you''re getting a Missing Template error, you sure you''re looking at the right action? Jason --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Yep. If only it were that easy! :) I''m probably doing something silly, I''ll keep trying... On 22 Apr, 19:09, "Jason Roelofs" <jameskil...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Tue, Apr 22, 2008 at 1:47 PM, Adam <adampennycu...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > Hi all, > > > I''m trying to write a functional test for an action which does not > > render a template (calls render :nothing => true). When I run the test > > it raises a "Missing Template" error. I''m a bit confused by this as I > > don''t think it should be trying to render any template, and the action > > works without errors when manually tested. Any ideas how to fix this? > > > Many thanks > > It''s always worked fine for me. In my tests I also put a test that > template == nil. > > If you''re getting a Missing Template error, you sure you''re looking at > the right action? > > Jason--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---