1
我想測試我的應用程序被渲染遊戲框架2.3.x版本正確的模板右模板的渲染,是這樣的:類似於rspec的呢如何測試
"Index" should{
"render index template" in new WithApplication{
...
val result = call(controller.index, FakeRequest())
someFunction(result) must render(views.html.index)
}
}
東西:
response.should render_template("success")
有沒有可能,推薦的方法是什麼?
好的,這將工作,謝謝。 – nowxue 2014-08-29 02:18:29