[rspec-users] [rails] expecting <"edit"> but rendering with <"">.

Justin Ko
Wed, 25 May 2011 00:05:04 -0000

On Tue, May 24, 2011 at 2:25 PM, Chris Habgood <chabgood at gmail.com>
wrote:

> I keep getting "" returned when looking for a template:
>
> describe "edit action" do
>        it "edit action should render edit template" do
>          Food.stub(:find_by_id).and_return(food)
>          response.should render_template(:edit)
>        end
>      end
>
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>

Try adding "render_views":
http://relishapp.com/rspec/rspec-rails/v/2-6/dir/controller-specs/render-views
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://rubyforge.org/pipermail/rspec-users/attachments/20110524/248a0c67/attachment.html>