Add summary field to Legislative Processes factory and at dev_seed

This commit is contained in:
Bertocq
2017-06-02 19:19:41 +02:00
parent 2c76f1cb3b
commit 8d0e76bcd3
2 changed files with 3 additions and 1 deletions

View File

@@ -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 👍"

View File

@@ -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