Follow-up from "Add spec for legacy key overrides"
The following discussion from !155968 (merged) should be addressed:
-
@ashmckenzie started a discussion:
suggestion (nitpick): As we only have a single
it
defined for this context, we generally have thebefore
logic included as part of theit
:it 'uses the legacy key' do stub_file_read(Gitlab::UsageDataCounters::HLLRedisCounter::KEY_OVERRIDES_PATH, content: 'an_event-filter:[label:foo]: a_legacy_key')
It's somewhat covered in https://docs.gitlab.com/ee/development/testing_guide/best_practices.html#subject-and-let-variables, but perhaps we could add an explicit example for
before
?This can be handled in a follow-up Issue however