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

Clean up of RSpec/LetSetup within spec/models #28444

Conversation

mjankowski
Copy link
Contributor

This is another approach to the previously closed #28368 focused just on some of the models specs, and attempting to not just move things to before blocks unless that made sense. Summary:

  • The canonical email block is a very short spec and the changed line seems to genuinely be setup code that is running in a let! - move this to a before
  • The other two had reasonable assertions to add about the previously unused vars, which reflects why they were being created

Copy link

codecov bot commented Dec 20, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (6fed0fc) 84.28% compared to head (99fccca) 84.31%.
Report is 5 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #28444      +/-   ##
==========================================
+ Coverage   84.28%   84.31%   +0.02%     
==========================================
  Files        1039     1039              
  Lines       28226    28226              
  Branches     4550     4550              
==========================================
+ Hits        23790    23798       +8     
+ Misses       3287     3279       -8     
  Partials     1149     1149              

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

@renchap renchap added testing Automated lint and test suites ruby Pull requests that update Ruby code labels Dec 20, 2023
@ClearlyClaire ClearlyClaire added this pull request to the merge queue Dec 21, 2023
Merged via the queue into mastodon:main with commit c753b1a Dec 21, 2023
36 checks passed
@mjankowski mjankowski deleted the discography-of-your-favourite-brit-pop-band-ON-STEROIDS branch December 21, 2023 10:52
vmstan pushed a commit to vmstan/mastodon that referenced this pull request Jan 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ruby Pull requests that update Ruby code testing Automated lint and test suites
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants