Skip to content
This repository
Browse code

Fix comment about passing a session to a second call of testS()

  • Loading branch information...
commit 2f2bcd72ec08ef50e8ce51bb2ee816ea304d86cb 1 parent 372f062
Diego Medina authored February 14, 2012
4  web/webkit/src/main/scala/net/liftweb/mockweb/MockWeb.scala
@@ -115,13 +115,13 @@ object MockWeb {
115 115
    * <pre name="code" class="scala">
116 116
    * object testVar extends SessionVar[String]("Empty")
117 117
    * 
118  
-   * val session = testS("http://foo.com/test") {
  118
+   * val testSession = testS("http://foo.com/test") {
119 119
        testVar("Foo!")
120 120
        S.session // returns the current session
121 121
      }
122 122
 
123 123
      // A second test
124  
-     testS("http://foo.com/test2", newSession = session) {
  124
+     testS("http://foo.com/test2", session = testSession) {
125 125
        testVar.is must_== "Foo!"
126 126
      }
127 127
    * </pre>

0 notes on commit 2f2bcd7

Please sign in to comment.
Something went wrong with that request. Please try again.