tweak
Dieser Commit ist enthalten in:
Ursprung
4d1ee9007b
Commit
79dcacf451
1 geänderte Dateien mit 1 neuen und 2 gelöschten Zeilen
|
@ -50,8 +50,7 @@ describe CustomWizardSerializer do
|
||||||
|
|
||||||
it "should return category attributes if there is a category selector field" do
|
it "should return category attributes if there is a category selector field" do
|
||||||
template['steps'][0]['fields'][0] = category_field
|
template['steps'][0]['fields'][0] = category_field
|
||||||
wizard = build_wizard(template)
|
json = CustomWizardSerializer.new(build_wizard(template), scope: Guardian.new(user)).as_json
|
||||||
json = CustomWizardSerializer.new(wizard, scope: Guardian.new(user)).as_json
|
|
||||||
expect(json[:custom_wizard][:categories].present?).to eq(true)
|
expect(json[:custom_wizard][:categories].present?).to eq(true)
|
||||||
expect(json[:custom_wizard][:uncategorized_category_id].present?).to eq(true)
|
expect(json[:custom_wizard][:uncategorized_category_id].present?).to eq(true)
|
||||||
end
|
end
|
||||||
|
|
Laden …
In neuem Issue referenzieren