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