2020-03-09 11:27:52 +01:00
|
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
2016-02-19 08:39:30 +01:00
|
|
|
|
require_relative '../factory_helper'
|
|
|
|
|
|
2018-03-18 21:21:59 +01:00
|
|
|
|
FactoryBot.define do
|
2015-09-27 13:51:13 +02:00
|
|
|
|
factory :paper do
|
2016-02-24 11:59:37 +01:00
|
|
|
|
name { Faker::Lorem.sentence }
|
2020-03-09 11:27:52 +01:00
|
|
|
|
sequence(:url) { |n| Faker::Internet.url(host: 'ris.example.org', path: "/paper-#{n}.html") }
|
2016-02-20 07:47:43 +01:00
|
|
|
|
sequence(:reference) { |n| FactoryHelper.reference(n) }
|
2020-03-09 11:27:52 +01:00
|
|
|
|
body { 'leipzig' }
|
|
|
|
|
published_at { '2015-07-20 21:16:53' }
|
|
|
|
|
scraped_at { '2015-07-20 21:16:53' }
|
2016-02-24 11:59:37 +01:00
|
|
|
|
paper_type { FactoryHelper.paper_type }
|
|
|
|
|
originator { Faker::Name.name }
|
2020-03-09 11:14:42 +01:00
|
|
|
|
resolution { Faker::Lorem.paragraph(sentence_count: 3) }
|
2020-03-09 11:12:55 +01:00
|
|
|
|
content { "-------------------------------\n\n " }
|
2015-09-27 13:51:13 +02:00
|
|
|
|
end
|
|
|
|
|
end
|