DEV: clean after replacing flags spec (#27194)

After flags are replaced, we need to bring the state back to the original. Otherwise, it causes flaky specs.
This commit is contained in:
Krzysztof Kotlarek 2024-05-27 21:57:41 +10:00 committed by GitHub
parent 3c0e672fc4
commit f5516b8088
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 1 deletions

View File

@ -675,7 +675,10 @@ TEXT
end
describe "#replace_flags" do
after { PostActionType.replace_flag_settings(nil) }
after do
PostActionType.replace_flag_settings(nil)
Flag.reset_flag_settings!
end
let(:original_flags) { PostActionType.flag_settings }