Open GoogleCodeExporter opened 9 years ago
Groovy's "with" construct (including myFoo.with { ... }) can significantly
reduce the amount of code and can significantly aid in comprehension. It would
be fantastic if the assertions could reach into these blocks and apply their
magic in there as well!
I don't know where to begin looking for where to add this capability, but if I
could get pointed in the right direction, I might be able to provide a PR.
Original comment by cdes...@gmail.com
on 26 Sep 2014 at 2:48
That's already supported, just that you'll need to use Spock's own `with`
method (e.g. `with(foo) { bar == 1 }`).
Original comment by pnied...@gmail.com
on 26 Sep 2014 at 4:43
(This issue is about an edge case where the assertion is a method call.)
Original comment by pnied...@gmail.com
on 26 Sep 2014 at 4:44
Original comment by pnied...@gmail.com
on 1 Mar 2015 at 11:45
Original issue reported on code.google.com by
pnied...@gmail.com
on 2 Aug 2013 at 6:30