Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create "foo bar.jpeg.webp" #1331

Merged

Conversation

peter-gribanov
Copy link
Contributor

@peter-gribanov peter-gribanov commented Dec 31, 2020

Q A
Branch? 2.0
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets
License MIT
Doc PR

Create foo bar.jpeg.webp for fix ImagineControllerTest::testShouldResolvePathWithSpecialCharactersAndWhiteSpaces().
See #1329 (comment)

@fbourigault
Copy link
Contributor

fbourigault commented Jan 4, 2021

The ImagineControllerTest::testShouldResolvePathWithSpecialCharactersAndWhiteSpaces() test is not expected to re-generate the image from the cache.

I didn't find any explicit reference, but I think the goal of this test is to ensure that when special chars/white spaces are used in the path, the cache is correctly resolved thus the cache is not re-build from source at every request.

You should dump the cached file at the beginning of the test as done with the jpeg version.

@peter-gribanov peter-gribanov force-pushed the fix_test_resolve_path_with_spaces branch from 358f427 to 4da6d10 Compare January 5, 2021 11:24
@peter-gribanov peter-gribanov changed the title Restore file "foo bar.jpeg" Create "foo bar.jpeg.webp" Jan 5, 2021
@peter-gribanov
Copy link
Contributor Author

@fbourigault Yes. You were right.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 83.571% when pulling 4da6d10 on peter-gribanov:fix_test_resolve_path_with_spaces into fd37e61 on liip:master.

@lsmith77 lsmith77 changed the base branch from master to 2.x January 5, 2021 12:49
@lsmith77 lsmith77 merged commit af51300 into liip:2.x Jan 5, 2021
@peter-gribanov peter-gribanov deleted the fix_test_resolve_path_with_spaces branch January 5, 2021 20:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants