Skip to content

Commit 792e592

Browse files
committed
Fix single quotes used for method names
1 parent 67be724 commit 792e592

File tree

1 file changed

+20
-20
lines changed
  • spock-specs/src/test/groovy/org/spockframework/smoke/parameterization

1 file changed

+20
-20
lines changed

spock-specs/src/test/groovy/org/spockframework/smoke/parameterization/DataTables.groovy

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ class DataTables extends EmbeddedSpecification {
250250
def "cell references are evaluated correctly in the method's name"() {
251251
when:
252252
def result = runner.runSpecBody '''
253-
def 'a = #a, b = #b'() {
253+
def "a = #a, b = #b"() {
254254
expect:
255255
true
256256

@@ -265,7 +265,7 @@ class DataTables extends EmbeddedSpecification {
265265
result.testEvents().finished().list().testDescriptor.displayName == ["a = 0, b = 1", "a = 2, b = 2", "a = #a, b = #b"]
266266
}
267267
268-
def 'data tables can be referenced from following variables'() {
268+
def "data tables can be referenced from following variables"() {
269269
expect:
270270
c == 3
271271
@@ -289,10 +289,10 @@ class DataTables extends EmbeddedSpecification {
289289
290290
@Issue('https://github.com/spockframework/spock/issues/1062')
291291
@Unroll
292-
def 'data tables with #separators can be combined'() {
292+
def "data tables with #separators can be combined"() {
293293
when:
294294
def results = runner.runSpecBody """
295-
def 'a feature (#a #b #c)'() {
295+
def "a feature (#a #b #c)"() {
296296
expect:
297297
true
298298
@@ -330,7 +330,7 @@ class DataTables extends EmbeddedSpecification {
330330
'|' | ';' | 'mixed separators'
331331
}
332332
333-
def 'combined data table columns can use previous data table column values within one table'() {
333+
def "combined data table columns can use previous data table column values within one table"() {
334334
expect:
335335
a == b
336336
@@ -344,7 +344,7 @@ class DataTables extends EmbeddedSpecification {
344344
c << (1..3)
345345
}
346346
347-
def 'filter block can exclude first iteration'() {
347+
def "filter block can exclude first iteration"() {
348348
when:
349349
def result = runner.runFeatureBody '''
350350
expect:
@@ -372,7 +372,7 @@ i != 1
372372
result.testsSucceededCount == 6
373373
}
374374
375-
def 'filter block can exclude last iteration'() {
375+
def "filter block can exclude last iteration"() {
376376
when:
377377
def result = runner.runFeatureBody '''
378378
expect:
@@ -400,7 +400,7 @@ i != 6
400400
result.testsSucceededCount == 6
401401
}
402402
403-
def 'filter block can not exclude all iterations'() {
403+
def "filter block can not exclude all iterations"() {
404404
when:
405405
runner.runFeatureBody '''
406406
expect:
@@ -426,7 +426,7 @@ false
426426
427427
@ResourceLock(SYSTEM_OUT)
428428
@ResourceLock(SYSTEM_ERR)
429-
def 'filtered iterations are logged'(@Snapshot Snapshotter snapshotter) {
429+
def "filtered iterations are logged"(@Snapshot Snapshotter snapshotter) {
430430
given:
431431
snapshotter.normalizedWith {
432432
it.normalize().replaceAll(/(\tat apackage\.ASpec\.a feature\().*(\.groovy:15\))/, '$1script$2')
@@ -476,7 +476,7 @@ i == 1
476476
}
477477
478478
@PendingFeature(reason = 'previous column access across tables does not yet work as expected with cross-multiplication')
479-
def 'combined data table columns can use previous data table column values across tables'() {
479+
def "combined data table columns can use previous data table column values across tables"() {
480480
when:
481481
def results = runner.runFeatureBody '''
482482
expect:
@@ -512,10 +512,10 @@ i == 1
512512
results.testsSucceededCount == 1 + 6
513513
}
514514
515-
def 'data tables with different widths can be combined'() {
515+
def "data tables with different widths can be combined"() {
516516
when:
517517
def results = runner.runSpecBody '''
518-
def 'a feature (#a #b #c #d #e)'() {
518+
def "a feature (#a #b #c #d #e)"() {
519519
expect:
520520
true
521521
@@ -538,10 +538,10 @@ i == 1
538538
]
539539
}
540540
541-
def 'data tables starting with table separator can be combined'() {
541+
def "data tables starting with table separator can be combined"() {
542542
when:
543543
def results = runner.runSpecBody '''
544-
def 'a feature (#a #b #c #d #e)'() {
544+
def "a feature (#a #b #c #d #e)"() {
545545
expect:
546546
true
547547
@@ -565,10 +565,10 @@ i == 1
565565
]
566566
}
567567
568-
def 'data tables ending with table separator can be combined'() {
568+
def "data tables ending with table separator can be combined"() {
569569
when:
570570
def results = runner.runSpecBody '''
571-
def 'a feature (#a #b #c #d #e)'() {
571+
def "a feature (#a #b #c #d #e)"() {
572572
expect:
573573
true
574574
@@ -592,10 +592,10 @@ i == 1
592592
]
593593
}
594594
595-
def 'data tables and data pipes can be combined'() {
595+
def "data tables and data pipes can be combined"() {
596596
when:
597597
def results = runner.runSpecBody '''
598-
def 'a feature (#a #b #c)'() {
598+
def "a feature (#a #b #c)"() {
599599
expect:
600600
true
601601
@@ -617,10 +617,10 @@ i == 1
617617
]
618618
}
619619
620-
def 'data pipes and data tables can be combined'() {
620+
def "data pipes and data tables can be combined"() {
621621
when:
622622
def results = runner.runSpecBody '''
623-
def 'a feature (#a #b #c)'() {
623+
def "a feature (#a #b #c)"() {
624624
expect:
625625
true
626626

0 commit comments

Comments
 (0)