我使用specs2 (v1.8.2)和Scala (v2.9.1)编写验收测试。按照的示例,我有以下规范和上下文案例类:
import org.specs2._
class testspec extends SpecificationWithJUnit { def is =
"test should" ^
"run a test in a context" ! context().e1
}
case class context() {
def e1 = 1 must beEqualTo(1)
}
我得到一个编译器错误: