Draft: Move spec setup out of `before` and into the factory
What does this MR do and why?
Move spec setup out of before and into the factory, to simplify a spec context that I'm working in.
We have a line in the before block that simply sets some minutes attributes. We do some of this in the namespace factory already, so we can be consistent and make the setting more reusable.
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
- Read the new code
bundle exec rspec ee/spec/requests/api/namespaces_spec.rb
bundle exec rspec ee/spec/features/admin/admin_groups_spec.rb
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 drew stachon