Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-22 09:20:29 +01:00
Fix spec for CI
Dieser Commit ist enthalten in:
Ursprung
f2a97f903c
Commit
3b9488cacb
2 geänderte Dateien mit 2 neuen und 1 gelöschten Zeilen
|
@ -299,7 +299,7 @@ class CustomWizard::Builder
|
|||
|
||||
case template['choices_preset']
|
||||
when 'categories'
|
||||
objects = site.categories
|
||||
objects = Set.new(Category.topic_create_allowed(guardian))
|
||||
when 'groups'
|
||||
objects = site.groups
|
||||
when 'tags'
|
||||
|
|
|
@ -192,6 +192,7 @@ describe CustomWizard::Builder do
|
|||
end
|
||||
|
||||
it 'returns a preset dropdown' do
|
||||
SiteSetting.allow_uncategorized_topics = false
|
||||
template['steps'][0]['fields'][0] = dropdown_categories_field
|
||||
choices = build_wizard(template, user).steps[0].fields[0].choices
|
||||
expect(choices.present?).to eq(true)
|
||||
|
|
Laden …
In neuem Issue referenzieren