Permalink
Browse files

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

  • Loading branch information...
1 parent 372f062 commit 2f2bcd72ec08ef50e8ce51bb2ee816ea304d86cb @fmpwizard fmpwizard committed Feb 14, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 web/webkit/src/main/scala/net/liftweb/mockweb/MockWeb.scala
@@ -115,13 +115,13 @@ object MockWeb {
* <pre name="code" class="scala">
* object testVar extends SessionVar[String]("Empty")
*
- * val session = testS("http://foo.com/test") {
+ * val testSession = testS("http://foo.com/test") {
testVar("Foo!")
S.session // returns the current session
}
// A second test
- testS("http://foo.com/test2", newSession = session) {
+ testS("http://foo.com/test2", session = testSession) {
testVar.is must_== "Foo!"
}
* </pre>

0 comments on commit 2f2bcd7

Please sign in to comment.