mgivney / easyb

Automatically exported from code.google.com/p/easyb
0 stars 0 forks source link

Using shouldBe in the given or when section #176

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I whould like to write this in the section given or when:

val = 10
val.shouldBe 10

I get a failed scenario with the error message: "No signature of method:
java.lang.Integer.shouldBe() is applicable for argument type:
(java.lang.Integer) values: [10]

Am I missing an import?

And if I write this:

val = 0

if (val != 0) {
    fail("fail")
}

if val is equal to 0 then it works, but if not, I'm getting an error like
the error above.

Original issue reported on code.google.com by daniel.v...@gmail.com on 22 Mar 2010 at 10:38

GoogleCodeExporter commented 9 years ago

Original comment by ajglo...@gmail.com on 9 Apr 2010 at 7:35

GoogleCodeExporter commented 9 years ago
duplicate of 183 (other way around, but same essence)

Original comment by richard....@gmail.com on 11 Jul 2010 at 6:34