etorreborre/specs2 — Issue #65: Strange behaviour combining DataTable results when there is an Error
Author: alltonp
Created: 2012-02-28 17:33:13+00:00
State: open

We have multiple DataTables in one example. That's probably a bad idea, but regardless - is 'and'-ing the results the correct way to combine the results?

```
"thing" should {
"multi" in {
val t1 = "field" || "value" |
"foo" !! "foo" |> {
(f, v) => f == v }

val t2 = "field" || "value" |
"bar" !! "bar" |> {
(f, v) => f == v }

t1 and t2
}
}
```

It seems to work, but if an Error occurs in t2 then the example incorrectly passes:

```
"thing" should {
"multi data tables" in {
val t1 = "field" || "value" |
"foo" !! "foo" |> {
(f, v) => f == v }

val t2 = "field" || "value" |
"bar" !! "bar" |> {
(f, v) => new Error("blah", new Exception) }

t1 and t2
}
}
```

Is this the expected behaviour? (note that if the Error occurs in t1 then it correctly fails).