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:
parent
3c0e672fc4
commit
f5516b8088
|
@ -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 }
|
||||
|
||||
|
|
Loading…
Reference in New Issue