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

Fix spec for CI

Dieser Commit ist enthalten in:
Angus McLeod 2020-02-05 18:20:39 +11:00
Ursprung f2a97f903c
Commit 3b9488cacb
2 geänderte Dateien mit 2 neuen und 1 gelöschten Zeilen

Datei anzeigen

@ -299,7 +299,7 @@ class CustomWizard::Builder
case template['choices_preset'] case template['choices_preset']
when 'categories' when 'categories'
objects = site.categories objects = Set.new(Category.topic_create_allowed(guardian))
when 'groups' when 'groups'
objects = site.groups objects = site.groups
when 'tags' when 'tags'

Datei anzeigen

@ -192,6 +192,7 @@ describe CustomWizard::Builder do
end end
it 'returns a preset dropdown' do it 'returns a preset dropdown' do
SiteSetting.allow_uncategorized_topics = false
template['steps'][0]['fields'][0] = dropdown_categories_field template['steps'][0]['fields'][0] = dropdown_categories_field
choices = build_wizard(template, user).steps[0].fields[0].choices choices = build_wizard(template, user).steps[0].fields[0].choices
expect(choices.present?).to eq(true) expect(choices.present?).to eq(true)