Skip to content
Snippets Groups Projects

Refactor approval_wrapped_rule specs

All threads resolved!

What does this MR do and why?

This MR refactors the specs for ApprovalWrappedRule to follow the Testing best practices.

More specifically, it touches on the following points:

  • Avoid referencing subject in examples. Use a named subject subject(:name), or a let variable instead, so the variable has a contextual name.
  • If the subject is never referenced inside examples, then it’s acceptable to define the subject without a name.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #410456 (closed)

Edited by Martin Čavoj

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Martin Čavoj added 1 commit

    added 1 commit

    • 324de1e3 - Refactor approval_wrapped_rule specs

    Compare with previous version

  • Andy Schoenen approved this merge request

    approved this merge request

  • Andy Schoenen requested review from @patrickbajao and removed review request for @Andysoiron

    requested review from @patrickbajao and removed review request for @Andysoiron

  • :wave: @Andysoiron, thanks for approving this merge request.

    This is the first time the merge request is approved. To ensure full test coverage, a new pipeline will be started shortly.

    For more info, please refer to the following links:

  • Patrick Bajao approved this merge request

    approved this merge request

  • Patrick Bajao resolved all threads

    resolved all threads

  • Patrick Bajao enabled an automatic merge when the pipeline for 402a50e0 succeeds

    enabled an automatic merge when the pipeline for 402a50e0 succeeds

  • merged

  • Patrick Bajao mentioned in commit 3a5275e3

    mentioned in commit 3a5275e3

  • added workflowstaging label and removed workflowcanary label

  • Please register or sign in to reply
    Loading