0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-28 03:40:29 +01:00

FIX: Specs involving topic CRUD require users with auto_groups 

1f72152e47
Dieser Commit ist enthalten in:
Angus McLeod 2023-12-20 14:05:28 +01:00
Ursprung 0229043906
Commit 41e240df09
2 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen

Datei anzeigen

@ -1,7 +1,7 @@
# frozen_string_literal: true # frozen_string_literal: true
# name: discourse-custom-wizard # name: discourse-custom-wizard
# about: Forms for Discourse. Better onboarding, structured posting, data enrichment, automated actions and much more. # about: Forms for Discourse. Better onboarding, structured posting, data enrichment, automated actions and much more.
# version: 2.5.4 # version: 2.5.5
# authors: Angus McLeod, Faizaan Gagan, Robert Barrow, Keegan George, Kaitlin Maddever, Juan Marcos Gutierrez Ramos # authors: Angus McLeod, Faizaan Gagan, Robert Barrow, Keegan George, Kaitlin Maddever, Juan Marcos Gutierrez Ramos
# url: https://github.com/paviliondev/discourse-custom-wizard # url: https://github.com/paviliondev/discourse-custom-wizard
# contact_emails: development@pavilion.tech # contact_emails: development@pavilion.tech

Datei anzeigen

@ -5,7 +5,7 @@ describe Topic, type: :model do
Fabricate(:category, custom_fields: { create_topic_wizard: 'true' }) Fabricate(:category, custom_fields: { create_topic_wizard: 'true' })
end end
fab!(:category_without_wizard) { Fabricate(:category) } fab!(:category_without_wizard) { Fabricate(:category) }
fab!(:user) { Fabricate(:user) } fab!(:user) { Fabricate(:user, refresh_auto_groups: true) }
let(:valid_attrs) { Fabricate.attributes_for(:topic) } let(:valid_attrs) { Fabricate.attributes_for(:topic) }
context 'with a create_topic_wizard custom field in the category' do context 'with a create_topic_wizard custom field in the category' do