浏览代码

fix fortune test

Damien Solimando 9 年之前
父节点
当前提交
f0774a1606
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      frameworks/Groovy/hot/shows/example.show.groovy

+ 1 - 1
frameworks/Groovy/hot/shows/example.show.groovy

@@ -63,7 +63,7 @@ rest.get('/fortunes/mongodb').then {
 		
 		def response = templateHeader
 		fortunes.each {
-			it._id = it._id as Integer
+			it._id = Integer.parseInt(it._id)
 			response += "<tr><td>${it._id}</td><td>${it.message}</td></tr>"
 		}
 		response += templateTail