2011-10-22 1 views

답변

3
it "redirects to the next step" do 
    # assign the current step 
    session[:page_step] = "next" 

    put :update 
    response.should redirect_to("pagenext") 
end 

코드에 오타가 있습니다 (successfaully). 코드를 단순화하여

redirect_to session[:"page#{session[:page_step]}"], :notice => 'Customer was updated successfully!'