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