Skip to content

Commit

Permalink
Fix comment about passing a session to a second call of testS()
Browse files Browse the repository at this point in the history
  • Loading branch information
fmpwizard committed Feb 14, 2012
1 parent 372f062 commit 2f2bcd7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/webkit/src/main/scala/net/liftweb/mockweb/MockWeb.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 2f2bcd7

Please sign in to comment.