Conversation
changelog: Internal, Automated Testing, Refactor 2FA setup controller specs
kevinsmaster5
left a comment
There was a problem hiding this comment.
Looks good and more efficient 👍
|
Something I never got to the bottom of as some links are busted - https://www.betterspecs.org/#expect. |
|
@vrajmohan Yeah it occurred to me after submitting that the one-liner documentation talks about Also, in the broader conversation of "should" vs. "expect", I think standardization is much more relevant and impactful when not using the one-liner syntax, since the non-one-liner impacts how the code is read much more than with the one-liner syntax. Not really a hill I'd die on either way. 🤷 |
Consistency See: #11399 (comment)
|
Updated from |
🎫 Ticket
Supports LG-14655
🛠 Summary of changes
Refactors specs for
Users::TwoFactorAuthenticationSetupController#create.Specific improvements:
describedescription to follow conventions for controller action method names ('PATCH create'➡️'#create')subjectandbeforecommon setupThis is split from the work of LG-14655, which requires revisions to these controller specs building upon the improvements here.
📜 Testing Plan