Permalink
Browse files

tuned some tests

  • Loading branch information...
1 parent 3d8edc6 commit 37a2cd678a4e50963708306f69d2c384c13a8c50 @wfaler committed Jun 4, 2011
@@ -3,6 +3,10 @@ import sbt._
class BowlerParentProject(info: ProjectInfo) extends DefaultProject(info){
val jsch = "com.jcraft" % "jsch" % "0.1.44"
val specs2 = "org.specs2" % "specs2_2.9.0" % "1.3" % "test"
+
+
+ def specs2Framework = new TestFramework("org.specs2.runner.SpecsFramework")
+ override def testFrameworks = super.testFrameworks ++ Seq(specs2Framework)
val jschRepo ="Jsch Repo" at "http://jsch.sourceforge.net/maven2/"
val scalaToolsRepo = "Scala-Tools repo" at "http://scala-tools.org/repo-releases/"
@@ -23,11 +23,11 @@ class ConfigAndEnvironmentSetupForTestingTest extends Specification{
"find a LoginBuilder" in {
(Config.loginBuilders("password").isInstanceOf[UsernamePasswordLoginBuilder]) must beTrue
}
- "invoking login on LoginBuilders returned Login" in{
+ "return a Login when LoginBuilders.login is called" in{
login = Config.loginBuilders("password").build(props)
login must be_!=(null)
}
- "login must have a username and password" in {
+ " give me a login with a username and password" in {
login.asInstanceOf[UsernamePasswordLogin].password must be_!=(null)
login.asInstanceOf[UsernamePasswordLogin].username must be_!=(null)
}

0 comments on commit 37a2cd6

Please sign in to comment.