Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Naftoli Gugenheim
committed
Jul 31, 2012
1 parent
5ab5f45
commit 762f746
Showing
24 changed files
with
136 additions
and
135 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
|
@@ -19,14 +19,15 @@ package http | ||
|
|
||
import js.JsCmds | import js.JsCmds | ||
import xml._ | import xml._ | ||
import org.specs.Specification | import org.specs2.mutable.Specification | ||
|
|
||
import common._ | import common._ | ||
|
|
||
/** | /** | ||
* System under specification for NamedComet* files. | * System under specification for NamedComet* files. | ||
*/ | */ | ||
object NamedCometPerTabSpec extends Specification("NamedCometPerTabSpec Specification") { | object NamedCometPerTabSpec extends Specification { | ||
"NamedCometPerTabSpec Specification".title | |||
|
|
||
class CometA extends NamedCometActorTrait{ | class CometA extends NamedCometActorTrait{ | ||
override def lowPriority = { | override def lowPriority = { | ||
|
@@ -38,7 +39,7 @@ object NamedCometPerTabSpec extends Specification("NamedCometPerTabSpec Specific | ||
} | } | ||
|
|
||
"A NamedCometDispatcher" should { | "A NamedCometDispatcher" should { | ||
doBefore { | step { | ||
val cometA= new CometA{override def name= Full("1")} | val cometA= new CometA{override def name= Full("1")} | ||
cometA.localSetup | cometA.localSetup | ||
|
|
||
|
@@ -50,16 +51,19 @@ object NamedCometPerTabSpec extends Specification("NamedCometPerTabSpec Specific | ||
NamedCometListener.getDispatchersFor(Full("1")).foreach( | NamedCometListener.getDispatchersFor(Full("1")).foreach( | ||
actor => actor.map(_.toString must startWith("net.liftweb.http.NamedCometDispatcher")) | actor => actor.map(_.toString must startWith("net.liftweb.http.NamedCometDispatcher")) | ||
) | ) | ||
success | |||
} | } | ||
"be created even if no comet is present when calling getOrAddDispatchersFor" in { | "be created even if no comet is present when calling getOrAddDispatchersFor" in { | ||
NamedCometListener.getOrAddDispatchersFor(Full("3")).foreach( | NamedCometListener.getOrAddDispatchersFor(Full("3")).foreach( | ||
actor => actor.toString must startWith("net.liftweb.http.NamedCometDispatcher") | actor => actor.toString must startWith("net.liftweb.http.NamedCometDispatcher") | ||
) | ) | ||
success | |||
} | } | ||
"not be created for a non existing key" in { | "not be created for a non existing key" in { | ||
NamedCometListener.getDispatchersFor(Full("2")).foreach( | NamedCometListener.getDispatchersFor(Full("2")).foreach( | ||
actor => actor must_== Empty | actor => actor must_== Empty | ||
) | ) | ||
success | |||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
fmpwizard
Member
|
|||
} | } | ||
} | } | ||
|
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
1 comment
on commit 762f746
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
does the success here mean that if
is not Empty, the test case will pass anyway?