Skip to content

Commit

Permalink
Fix single quotes used for method names
Browse files Browse the repository at this point in the history
  • Loading branch information
leonard84 committed Jan 20, 2025
1 parent 67be724 commit 792e592
Showing 1 changed file with 20 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ class DataTables extends EmbeddedSpecification {
def "cell references are evaluated correctly in the method's name"() {
when:
def result = runner.runSpecBody '''
def 'a = #a, b = #b'() {
def "a = #a, b = #b"() {
expect:
true

Expand All @@ -265,7 +265,7 @@ class DataTables extends EmbeddedSpecification {
result.testEvents().finished().list().testDescriptor.displayName == ["a = 0, b = 1", "a = 2, b = 2", "a = #a, b = #b"]
}
def 'data tables can be referenced from following variables'() {
def "data tables can be referenced from following variables"() {
expect:
c == 3
Expand All @@ -289,10 +289,10 @@ class DataTables extends EmbeddedSpecification {
@Issue('https://github.com/spockframework/spock/issues/1062')
@Unroll
def 'data tables with #separators can be combined'() {
def "data tables with #separators can be combined"() {
when:
def results = runner.runSpecBody """
def 'a feature (#a #b #c)'() {
def "a feature (#a #b #c)"() {
expect:
true
Expand Down Expand Up @@ -330,7 +330,7 @@ class DataTables extends EmbeddedSpecification {
'|' | ';' | 'mixed separators'
}
def 'combined data table columns can use previous data table column values within one table'() {
def "combined data table columns can use previous data table column values within one table"() {
expect:
a == b
Expand All @@ -344,7 +344,7 @@ class DataTables extends EmbeddedSpecification {
c << (1..3)
}
def 'filter block can exclude first iteration'() {
def "filter block can exclude first iteration"() {
when:
def result = runner.runFeatureBody '''
expect:
Expand Down Expand Up @@ -372,7 +372,7 @@ i != 1
result.testsSucceededCount == 6
}
def 'filter block can exclude last iteration'() {
def "filter block can exclude last iteration"() {
when:
def result = runner.runFeatureBody '''
expect:
Expand Down Expand Up @@ -400,7 +400,7 @@ i != 6
result.testsSucceededCount == 6
}
def 'filter block can not exclude all iterations'() {
def "filter block can not exclude all iterations"() {
when:
runner.runFeatureBody '''
expect:
Expand All @@ -426,7 +426,7 @@ false
@ResourceLock(SYSTEM_OUT)
@ResourceLock(SYSTEM_ERR)
def 'filtered iterations are logged'(@Snapshot Snapshotter snapshotter) {
def "filtered iterations are logged"(@Snapshot Snapshotter snapshotter) {
given:
snapshotter.normalizedWith {
it.normalize().replaceAll(/(\tat apackage\.ASpec\.a feature\().*(\.groovy:15\))/, '$1script$2')
Expand Down Expand Up @@ -476,7 +476,7 @@ i == 1
}
@PendingFeature(reason = 'previous column access across tables does not yet work as expected with cross-multiplication')
def 'combined data table columns can use previous data table column values across tables'() {
def "combined data table columns can use previous data table column values across tables"() {
when:
def results = runner.runFeatureBody '''
expect:
Expand Down Expand Up @@ -512,10 +512,10 @@ i == 1
results.testsSucceededCount == 1 + 6
}
def 'data tables with different widths can be combined'() {
def "data tables with different widths can be combined"() {
when:
def results = runner.runSpecBody '''
def 'a feature (#a #b #c #d #e)'() {
def "a feature (#a #b #c #d #e)"() {
expect:
true
Expand All @@ -538,10 +538,10 @@ i == 1
]
}
def 'data tables starting with table separator can be combined'() {
def "data tables starting with table separator can be combined"() {
when:
def results = runner.runSpecBody '''
def 'a feature (#a #b #c #d #e)'() {
def "a feature (#a #b #c #d #e)"() {
expect:
true
Expand All @@ -565,10 +565,10 @@ i == 1
]
}
def 'data tables ending with table separator can be combined'() {
def "data tables ending with table separator can be combined"() {
when:
def results = runner.runSpecBody '''
def 'a feature (#a #b #c #d #e)'() {
def "a feature (#a #b #c #d #e)"() {
expect:
true
Expand All @@ -592,10 +592,10 @@ i == 1
]
}
def 'data tables and data pipes can be combined'() {
def "data tables and data pipes can be combined"() {
when:
def results = runner.runSpecBody '''
def 'a feature (#a #b #c)'() {
def "a feature (#a #b #c)"() {
expect:
true
Expand All @@ -617,10 +617,10 @@ i == 1
]
}
def 'data pipes and data tables can be combined'() {
def "data pipes and data tables can be combined"() {
when:
def results = runner.runSpecBody '''
def 'a feature (#a #b #c)'() {
def "a feature (#a #b #c)"() {
expect:
true
Expand Down

0 comments on commit 792e592

Please sign in to comment.