[rspec-users] Problems testing rss feed controller.

Rick DeNatale rick.denatale at gmail.com
Thu Feb 7 15:39:26 EST 2008

On 2/7/08, David Chelimsky <dchelimsky at gmail.com> wrote:
> On Feb 7, 2008 2:27 PM, Rick DeNatale <rick.denatale at gmail.com> wrote:
> > I've got a controller which produces an RSS feed, pretty much based on
> > Ryan Bates recent RailsCast.
> >
> > I'm having a heck of a time getting the spec to successfully fetch the
> > feed though.  I gave up got it working without a spec, and I'm now
> > trying to back up and get the spec to work.

> Try integrate_views:
> describe PodcastRssFeedController do
>   integrate_views
>   ...
> end
> Without that, render gets modified by rspec (to isolate your
> controllers from their views).

Thanks for the quick reply David, that was the problem, athough I
found that it needs to go into the nested example group, not the outer

Rick DeNatale

My blog on Ruby

More information about the rspec-users mailing list