Skip to content

Commit e9b8a26

Browse files
committed
DatabaseImagePersistenceStrategyTest: rename variable.
No functional changes.
1 parent 0d18f41 commit e9b8a26

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/test/groovy/ru/mystamps/web/service/DatabaseImagePersistenceStrategyTest.groovy

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,14 @@ class DatabaseImagePersistenceStrategyTest extends Specification {
5656
given:
5757
Integer expectedImageId = imageInfoDto.id
5858
and:
59-
byte[] expected = 'test'.bytes
60-
multipartFile.bytes >> expected
59+
byte[] expectedContent = 'test'.bytes
60+
multipartFile.bytes >> expectedContent
6161
when:
6262
strategy.save(multipartFile, imageInfoDto)
6363
then:
6464
1 * imageDataDao.add({ AddImageDataDbDto imageData ->
6565
assert imageData?.imageId == expectedImageId
66-
assert imageData?.content == expected
66+
assert imageData?.content == expectedContent
6767
assert imageData?.preview == false
6868
return true
6969
})

0 commit comments

Comments
 (0)