Skip to content

Commit 2cae593

Browse files
committed
refactor: split "where" block and its arguments
This change is needed in order to simplify automated porting of tests. Part of 1246
1 parent b2791d8 commit 2cae593

File tree

1 file changed

+14
-11
lines changed

1 file changed

+14
-11
lines changed

src/test/groovy/ru/mystamps/web/feature/site/LegacySiteServiceImplTest.groovy

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -210,9 +210,10 @@ class LegacySiteServiceImplTest extends Specification {
210210
assert activity?.method == expectedMethod
211211
return true
212212
})
213-
where: expectedMethod | _
214-
'OPTIONS' | _
215-
null | _
213+
where:
214+
expectedMethod | _
215+
'OPTIONS' | _
216+
null | _
216217
}
217218

218219
@SuppressWarnings(['ClosureAsLastMethodParameter', 'UnnecessaryReturnKeyword'])
@@ -311,10 +312,11 @@ class LegacySiteServiceImplTest extends Specification {
311312
assert activity?.refererPage == null
312313
return true
313314
})
314-
where: refererPage | _
315-
' ' | _
316-
'' | _
317-
null | _
315+
where:
316+
refererPage | _
317+
' ' | _
318+
'' | _
319+
null | _
318320
}
319321

320322
@SuppressWarnings(['ClosureAsLastMethodParameter', 'UnnecessaryReturnKeyword'])
@@ -352,10 +354,11 @@ class LegacySiteServiceImplTest extends Specification {
352354
assert activity?.userAgent == null
353355
return true
354356
})
355-
where: userAgent | _
356-
' ' | _
357-
'' | _
358-
null | _
357+
where:
358+
userAgent | _
359+
' ' | _
360+
'' | _
361+
null | _
359362
}
360363

361364
}

0 commit comments

Comments
 (0)