lib/decidim/elections/test/factories.rb in decidim-elections-0.25.2 vs lib/decidim/elections/test/factories.rb in decidim-elections-0.26.0.rc1
- old
+ new
@@ -68,11 +68,11 @@
end
end
trait :ready_for_setup do
transient do
- trustee_keys { 2.times.map { [Faker::Name.name, generate(:private_key).export.to_json] }.to_h }
+ trustee_keys { 3.times.map { [Faker::Name.name, generate(:private_key).export.to_json] }.to_h }
end
upcoming
published
complete
@@ -313,10 +313,10 @@
transient do
election { nil }
end
public_key { nil }
- user { build(:user, organization: organization) }
+ user { build(:user, :confirmed, organization: organization) }
organization { create(:organization) }
trait :considered do
after(:build) do |trustee, evaluator|
trustee.trustees_participatory_spaces << build(:trustees_participatory_space, trustee: trustee, election: evaluator.election, organization: evaluator.organization)