Skip to content

Fix RSpec cop violations

Ryan Cobb requested to merge 198581-fix_rspec_cops into master

What does this MR do?

RSpec/ReceiveCounts and RSpec/ContextMethod cops were enabled in !23456 (merged). Current codebase violations were ignored as part of the new process. This MR includes the fixes for those violations by running rubocop --auto-correct.

Fixes #198581 (closed)

Screenshots

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • [-] Label as security and @ mention @gitlab-com/gl-security/appsec
  • [-] The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • [-] Security reports checked/validated by a reviewer from the AppSec team

Closes #198581 (closed)

Edited by 🤖 GitLab Bot 🤖

Merge request reports