Stubbing ApplicationSetting.current in stub_application_setting
What does this MR do?
At the moment we're not consistent about how we're accessing ApplicationSetting
. In the test suite, we have stub_application_setting
to stub the settings, but we don't cover the ApplicationSetting.current
. This MR stub also that case.
It refactors as well some old stubbing references in the specs like allow_any_instance_of(ApplicationSetting)...
to use the stub_application_setting
method.
Does this MR meet the acceptance criteria?
Conformity
- [ ] Changelog entry for user-facing changes, or community contribution. Check the link for other scenarios.
Edited by Francisco Javier López (ex-Gitlab)