jtanistra / spock

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

Compilation/transformation bug #367

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem? If possible, provide source code and
stack trace.

The following conditional leads to a compilation/transformation bug in Spock:

            withWindow("windowName", close: true) {
                waitFor { at FooPage }
                assert foo.bar.isEmpty() == true;
                assert foo.baz.isEmpty() == true;
                assert foo.meh.isEmpty() == true;
            }

The error reported is:

org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
Spec expression: 1: expecting '}', found 'assert' @ line 1, column 74.
   tFor { at FooPage } assert foo

What version of Spock and Groovy are you using?

1.0-SNAPSHOT

Original issue reported on code.google.com by behran...@gmail.com on 1 Jul 2014 at 12:44

GoogleCodeExporter commented 8 years ago

Original comment by pnied...@gmail.com on 1 Jul 2014 at 2:11