sampig / spock

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

old() expression blows up when part of failing condition #276

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
def x = 1

when:
x = 2

then:
x == old(x) + 42

Gives an InternalSpockError when rendering the condition (too few values 
captured).

Original issue reported on code.google.com by pnied...@gmail.com on 16 Oct 2012 at 8:56

GoogleCodeExporter commented 9 years ago

Original comment by pnied...@gmail.com on 16 Oct 2012 at 9:09