我在Rails3中使用respond_to和respond_with对来响应DELETE #destroy请求。销毁操作在UsersController中定义。它销毁params[:id]指定的用户,并使用JS模板进行响应。然而,在RSpec测试中,请求总是失败,我不确定如何修复它。destroy @user.destroy
end
我有以下特点: Given I created a post with the title "Test", author "Testauthor" and body "Testbody" Then I should see the text "Comment was successfully destroyed."
有问题的代码是给定的im