Permalink
Browse files

use specs2

  • Loading branch information...
1 parent d267eaf commit 3070600746b98316743f4f20bb1474ef164e8453 @ymasory ymasory committed May 4, 2011
Showing with 6 additions and 6 deletions.
  1. +1 −1 README.md
  2. +3 −3 project/build/Project.scala
  3. +2 −2 src/test/scala/example/SpecsExample.scala
View
@@ -7,7 +7,7 @@
## Contributing tests ##
### Available frameworks ###
-You can contribute tests using ScalaTests, ScalaCheck, Specs, or JUnit. You can see examples of each in `src/test/scala/example`.
+You can contribute tests using ScalaTests, ScalaCheck, Specs2, or JUnit. You can see examples of each in `src/test/scala/example`.
### Naming ###
If you want to write a test for `scala.collection.immutable.List` you should:
@@ -19,9 +19,9 @@ class Project(info: ProjectInfo) extends DefaultProject(info) {
case "2.9.0.RC3" =>
"org.scala-tools.testing" % "scalacheck_2.9.0.RC2" % "1.8"
}
- val specs = vs match {
- case "2.8.1" => "org.scala-tools.testing" %% "specs" % "1.6.7.2"
- case "2.9.0.RC3" => "org.scala-tools.testing" % "specs_2.8.1" % "1.6.7.2"
+ val specs2 = vs match {
+ case "2.8.1" => "org.specs2" %% "specs2" % "1.2"
+ case "2.9.0.RC3" => "org.specs2" % "specs2_2.9.0.RC2" % "1.2"
}
// dependencies from snapshots repo
@@ -1,8 +1,8 @@
package quala.example
-import org.specs._
+import org.specs2.mutable._
class SpecsExample extends Specification {
- "SpecsExamples".size must_== 13
+ "SpecsExamples" must have size(13)
}

0 comments on commit 3070600

Please sign in to comment.