From c61872a0ca359b829d38dbe33a277a079be106ed Mon Sep 17 00:00:00 2001 From: Emma Lejeck Date: Sat, 12 Oct 2024 23:54:00 -0700 Subject: [PATCH] Initialize the users and groups indices for tests --- spec/support/typesensual.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/spec/support/typesensual.rb b/spec/support/typesensual.rb index 31be24d28..ce105bd5d 100644 --- a/spec/support/typesensual.rb +++ b/spec/support/typesensual.rb @@ -1,7 +1,12 @@ # frozen_string_literal: true RSpec.configure do |config| - indices = [TypesenseAnimeIndex, TypesenseMangaIndex].freeze + indices = [ + TypesenseAnimeIndex, + TypesenseMangaIndex, + TypesenseUsersIndex, + TypesenseGroupsIndex + ].freeze # Create a new collection for each index before each test and delete it afterwards. We also stub # it into place for the index instead of using aliases because the alias is updated