lib/decidim/elections/component.rb in decidim-elections-0.26.2 vs lib/decidim/elections/component.rb in decidim-elections-0.26.3
- old
+ new
@@ -111,13 +111,10 @@
Decidim::Elections::Question,
admin_user,
{
election: upcoming_election,
title: Decidim::Faker::Localized.sentence(word_count: 2),
- description: Decidim::Faker::Localized.wrapped("<p>", "</p>") do
- Decidim::Faker::Localized.paragraph(sentence_count: 3)
- end,
max_selections: Faker::Number.between(from: 1, to: 3),
weight: Faker::Number.number(digits: 1),
random_answers_order: Faker::Boolean.boolean(true_ratio: 0.5),
min_selections: Faker::Number.between(from: 0, to: 1)
},
@@ -211,13 +208,10 @@
Decidim::Elections::Question,
admin_user,
{
election: finished_election,
title: Decidim::Faker::Localized.sentence(word_count: 2),
- description: Decidim::Faker::Localized.wrapped("<p>", "</p>") do
- Decidim::Faker::Localized.paragraph(sentence_count: 3)
- end,
max_selections: 2,
weight: Faker::Number.number(digits: 1),
random_answers_order: Faker::Boolean.boolean(true_ratio: 0.5),
min_selections: Faker::Number.between(from: 0, to: 1)
},
@@ -334,13 +328,10 @@
Decidim::Elections::Question,
admin_user,
{
election: election_with_results,
title: Decidim::Faker::Localized.sentence(word_count: 2),
- description: Decidim::Faker::Localized.wrapped("<p>", "</p>") do
- Decidim::Faker::Localized.paragraph(sentence_count: 3)
- end,
max_selections: 2,
weight: Faker::Number.number(digits: 1),
random_answers_order: Faker::Boolean.boolean(true_ratio: 0.5),
min_selections: Faker::Number.between(from: 0, to: 1)
},
@@ -454,12 +445,9 @@
Decidim::Elections::Question,
admin_user,
{
election: ongoing_election,
title: Decidim::Faker::Localized.sentence(word_count: 2),
- description: Decidim::Faker::Localized.wrapped("<p>", "</p>") do
- Decidim::Faker::Localized.paragraph(sentence_count: 3)
- end,
max_selections: 2,
weight: Faker::Number.number(digits: 1),
random_answers_order: Faker::Boolean.boolean(true_ratio: 0.5),
min_selections: Faker::Number.between(from: 0, to: 1)
},