From b8684799cb93e15f176335d819caca12ec6f2a87 Mon Sep 17 00:00:00 2001 From: Ted Johansson Date: Mon, 15 Jan 2024 17:31:45 +0800 Subject: [PATCH] DEV: Update test setup to work with auto groups (#274) We're updating core to change TL based access settings to be group based. This requires some updates of tests to work correctly. (The existing test setup gives false positives.) --- spec/components/post_revisor_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/components/post_revisor_spec.rb b/spec/components/post_revisor_spec.rb index 77a2df5..2d4be63 100644 --- a/spec/components/post_revisor_spec.rb +++ b/spec/components/post_revisor_spec.rb @@ -5,7 +5,7 @@ require "post_revisor" describe PostRevisor do fab!(:category) { Fabricate(:category_with_definition) } - fab!(:admin) { Fabricate(:admin) } + fab!(:admin) { Fabricate(:admin, refresh_auto_groups: true) } fab!(:category_solved) do category = Fabricate(:category_with_definition)