From 8d0e76bcd3c4951603894c2ba8705d6cf8d0cb59 Mon Sep 17 00:00:00 2001 From: Bertocq Date: Fri, 2 Jun 2017 19:19:41 +0200 Subject: [PATCH] Add summary field to Legislative Processes factory and at dev_seed --- db/dev_seeds.rb | 3 ++- spec/factories.rb | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/db/dev_seeds.rb b/db/dev_seeds.rb index b45eff5d8..a787edbde 100644 --- a/db/dev_seeds.rb +++ b/db/dev_seeds.rb @@ -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 👍" \ No newline at end of file +puts "All dev seeds created successfuly 👍" diff --git a/spec/factories.rb b/spec/factories.rb index af1120089..ed89ec154 100644 --- a/spec/factories.rb +++ b/spec/factories.rb @@ -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