Forum: Ruby on Rails rspec test cannot be passed when render partial in layout

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
zerogy (Guest)
on 2009-02-10 10:57
(Received via mailing list)
I have a problem stuck me couples of days, could anyone help me?
Thanks very much.
The problem is that rspec test cannot be passed when the layout
contains :partial, once
i removed the :partial, the rspec test passed successfully. I could
not find out the reason.
Below is my code:
    <%= render :partial => 'shared/header' %>
    <div id="wrap">
      <div id="content">
        <%= yield %>
    <%= render :partial => 'shared/footer' %>

describe UsersController do
  describe "Requesting /forgot_password using GET" do
    it "should be successful" do
      get :forgot_password
This topic is locked and can not be replied to.