Add summary field to Legislative Processes factory and at dev_seed
This commit is contained in:
@@ -634,6 +634,7 @@ print "Creating legislation processes"
|
||||
(1..5).each do |i|
|
||||
process = ::Legislation::Process.create!(title: Faker::Lorem.sentence(3).truncate(60),
|
||||
description: Faker::Lorem.paragraphs.join("\n\n"),
|
||||
summary: Faker::Lorem.paragraph,
|
||||
target: Faker::Lorem.paragraphs.join("\n\n"),
|
||||
how_to_participate: Faker::Lorem.paragraphs.join("\n\n"),
|
||||
additional_info: Faker::Lorem.paragraphs.join("\n\n"),
|
||||
@@ -657,4 +658,4 @@ end
|
||||
end
|
||||
|
||||
puts " ✅"
|
||||
puts "All dev seeds created successfuly 👍"
|
||||
puts "All dev seeds created successfuly 👍"
|
||||
|
||||
@@ -603,6 +603,7 @@ FactoryGirl.define do
|
||||
factory :legislation_process, class: 'Legislation::Process' do
|
||||
title "A collaborative legislation process"
|
||||
description "Description of the process"
|
||||
summary "Summary of the process"
|
||||
target "Who will affected by this law?"
|
||||
how_to_participate "You can participate by answering some questions"
|
||||
start_date Date.current - 5.days
|
||||
|
||||
Reference in New Issue
Block a user