-
Notifications
You must be signed in to change notification settings - Fork 471
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ISSUE-274] detect whether where: parameters are being executed and s…
…o should be reference in the expect: block
- Loading branch information
David Dawson
committed
Dec 28, 2013
1 parent
ee265ea
commit b52150b
Showing
2 changed files
with
52 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
...cs/src/test/groovy/org/spockframework/runtime/condition/ClosureAsDataValueCallSpec.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package org.spockframework.runtime.condition | ||
import org.spockframework.EmbeddedSpecification | ||
import spock.lang.Issue | ||
|
||
class ClosureAsDataValueCallSpec extends EmbeddedSpecification { | ||
|
||
@Issue("http://issues.spockframework.org/detail?id=274") | ||
def "multi line expression failss"() { | ||
when: | ||
runner.runSpecBody(""" | ||
def "multi line expression failing"() { | ||
expect: | ||
1 == wibble() | ||
where: | ||
wibble = { 1 } | ||
} | ||
""") | ||
|
||
then: | ||
notThrown(Exception) | ||
} | ||
} | ||
|