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

Add specs for User#avatar_format #1317

Merged
merged 1 commit into from
Apr 2, 2024
Merged

Add specs for User#avatar_format #1317

merged 1 commit into from
Apr 2, 2024

Conversation

MrSerth
Copy link
Member

@MrSerth MrSerth commented Mar 25, 2024

While working on #1316, I got a few more tests suggested that I didn't want to remove (since none were present before).

@MrSerth MrSerth self-assigned this Mar 25, 2024
@MrSerth MrSerth requested a review from kkoehn March 25, 2024 16:19
Copy link

codecov bot commented Mar 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.73%. Comparing base (67bbaee) to head (ccdd4ea).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1317      +/-   ##
==========================================
+ Coverage   87.55%   87.73%   +0.17%     
==========================================
  Files          99       99              
  Lines        2315     2315              
==========================================
+ Hits         2027     2031       +4     
+ Misses        288      284       -4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@kkoehn kkoehn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great addition for the user-validations!
I added one small request concerning the locations of the specs.

spec/models/user_spec.rb Outdated Show resolved Hide resolved
Previously, an invalid image would still be displayed to users in an attempt to keep their changes. However, this didn't work, so that we are now preventing a changed image to be displayed.
@MrSerth MrSerth merged commit 650a42c into master Apr 2, 2024
10 checks passed
@MrSerth MrSerth deleted the specs_avatar_format branch April 2, 2024 18:28
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.

Uploading non-image as avatar produces crash
3 participants