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']
|
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'
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Laden …
In neuem Issue referenzieren