Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 2f2bcd72ec08ef50e8ce51bb2ee816ea304d86cb 1 parent 372f062
Diego Medina fmpwizard authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 web/webkit/src/main/scala/net/liftweb/mockweb/MockWeb.scala
4 web/webkit/src/main/scala/net/liftweb/mockweb/MockWeb.scala
View
@@ -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>
Please sign in to comment.
Something went wrong with that request. Please try again.