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 a missing spec to SessionsController#webauthn_options #29277

Merged

Conversation

hendrixfan
Copy link
Contributor

@hendrixfan hendrixfan commented Feb 19, 2024

There was a missing test [1] for SessionsController#webauthn_options for when webauthn is not enabled on a user. This PR will make sure that the 401 Error is rendered in the Test suite.

[1] https://app.codecov.io/gh/mastodon/mastodon/pull/29158/blob/app/controllers/auth/sessions_controller.rb#L61

… is not enabled on a user

There was a missing test [1] for SessionsController#webauthn_options for when webauthn is not enabled on a user.

[1] https://app.codecov.io/gh/mastodon/mastodon/pull/29158/blob/app/controllers/auth/sessions_controller.rb#L61
Copy link

codecov bot commented Feb 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (86500e3) 85.01% compared to head (1cb4c73) 85.01%.
Report is 89 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #29277      +/-   ##
==========================================
- Coverage   85.01%   85.01%   -0.01%     
==========================================
  Files        1059     1060       +1     
  Lines       28277    28312      +35     
  Branches     4538     4542       +4     
==========================================
+ Hits        24040    24069      +29     
- Misses       3074     3076       +2     
- Partials     1163     1167       +4     

☔ 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 Feb 19, 2024
@ClearlyClaire ClearlyClaire added this pull request to the merge queue Feb 26, 2024
Merged via the queue into mastodon:main with commit d51c3ac Feb 26, 2024
34 checks passed
skerit pushed a commit to 11ways/mastodon that referenced this pull request Feb 27, 2024
Ember-ruby pushed a commit to Ember-ruby/mastodon-glitch that referenced this pull request Mar 19, 2024
lutoma pushed a commit to ohaisocial/mastodon that referenced this pull request Mar 19, 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

4 participants