From 37e6ac169e5bbdb91b1b24b15f11bd22a6b1d354 Mon Sep 17 00:00:00 2001 From: Ted Johansson Date: Mon, 15 Jan 2024 20:18:56 +0800 Subject: [PATCH] DEV: Update test setup to work with auto groups (#424) 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/system/ai_helper/ai_composer_helper_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/system/ai_helper/ai_composer_helper_spec.rb b/spec/system/ai_helper/ai_composer_helper_spec.rb index 2a670b3d..0fce44d4 100644 --- a/spec/system/ai_helper/ai_composer_helper_spec.rb +++ b/spec/system/ai_helper/ai_composer_helper_spec.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true RSpec.describe "AI Composer helper", type: :system, js: true do - fab!(:user) { Fabricate(:admin) } + fab!(:user) { Fabricate(:admin, refresh_auto_groups: true) } fab!(:non_member_group) { Fabricate(:group) } before do