mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 01:14:12 +08:00
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:

committed by
GitHub

parent
3c0e672fc4
commit
f5516b8088
@ -675,7 +675,10 @@ TEXT
|
|||||||
end
|
end
|
||||||
|
|
||||||
describe "#replace_flags" do
|
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 }
|
let(:original_flags) { PostActionType.flag_settings }
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user