I have this code
if @temp_user.save sign_in(:user, @temp_user) render text: "OK" else render text: render_to_string(:partial => "errors") end
and I will try to check with rspec the renderer "OK"
This is my actual specification:
it "render text OK" do post :create, {:agent => valid_attributes}
but this specification always answers 0 errors, even when I put "OKI" in the place of "OK"
Who has one suggestion for this?
user1040363
source share