Browse Source

verify Trying to fix some play tests

Mike Smith 11 years ago
parent
commit
16082cb874

+ 1 - 1
play-scala/app/views/fortune.scala.html

@@ -1,6 +1,6 @@
 @(fortunes: List[Fortune])
 
-@main("Testcase 4 :: Fortune :: FrameworkBenchmark") {
+@main("Fortunes") {
     <table>
         <tr>
             <th>id</th>

+ 0 - 1
play-scala/app/views/main.scala.html

@@ -5,7 +5,6 @@
 <html>
 <head>
     <title>@title</title>
-    <meta charset=utf-8>
 </head>
 <body>
     @content

+ 1 - 1
play-slick/app/controllers/Application.scala

@@ -57,7 +57,7 @@ object Application extends Controller {
   def fortunes() = PredicatedAction(isDbAvailable, ServiceUnavailable) {
     Action.async {
       Future(fortunesTable.getAll())(dbEc).map { fs =>
-        val fortunes =  Fortune(-1, "Additional fortune added at request time.") +: fs
+        val fortunes =  Fortune(0, "Additional fortune added at request time.") +: fs
         Ok(views.html.fortune(fortunes))
       }
     }

+ 1 - 1
play-slick/app/views/fortune.scala.html

@@ -1,6 +1,6 @@
 @(fortunes: List[Fortune])
 
-@main("Testcase 4 :: Fortune :: FrameworkBenchmark") {
+@main("Fortunes") {
     <table>
         <tr>
             <th>id</th>

+ 0 - 1
play-slick/app/views/main.scala.html

@@ -5,7 +5,6 @@
 <html>
 <head>
     <title>@title</title>
-    <meta charset=utf-8>
 </head>
 <body>
     @content