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:
application.html.erb
  <body>
    <%= render :partial => 'shared/header' %>
    <div id="wrap">
      <div id="content">
        <%= yield %>
      </div>
    </div>
    <%= render :partial => 'shared/footer' %>
  </body>

users_controller_spec.rb
describe UsersController do
  describe "Requesting /forgot_password using GET" do
    it "should be successful" do
      get :forgot_password
    end
  end
end

--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to