Fix different initial value warning in custom email verification
What does this MR do and why?
Running specs for ServiceDesk::CustomEmailVerification
displays the following warning state_machine
:
Both ServiceDesk::CustomEmailVerification and its :state machine have defined a different default for "state". Use only one or the other for defining defaults to avoid unexpected behaviors.
This MR tries to get rid of this warning message by overriding the default the state machine should use.
Follow-up of !118523 (comment 1381045619).
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
How to set up and validate locally
- Run
bin/rspec spec/models/service_desk/custom_email_verification_spec.rb
ingitlab
folder
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Peter Leitzen