I have some specs2 tests with Scope:
"hello" should {
"return world" in new Subject {
hello.get === "world"
}
}
trait Subject extends org.specs2.specification.Scope {
val hello = new Hello
}
Now I want to convert it into acceptance style:
def is = s2"""
hello.get should return 'world' $e1
"""
def e1 = new Subject {
hello.get === "world"
}
trait Subject extends org.specs2.specification.Scope {
val hello = new Hello
}
It seems working and the test is passed, but soon I found it's never failed no matter how I modify it:
hello.get === "invalid-world" // still passing
How to use Scope correctly in acceptance style?