2016-02-19 08:39:30 +01:00
|
|
|
|
require_relative '../factory_helper'
|
|
|
|
|
|
2015-09-27 13:51:13 +02:00
|
|
|
|
FactoryGirl.define do
|
|
|
|
|
factory :paper do
|
2016-02-19 08:23:31 +01:00
|
|
|
|
name { Faker::Lorem.sentence }
|
|
|
|
|
url { Faker::Internet.url("ris.example.org") }
|
2016-02-20 07:47:43 +01:00
|
|
|
|
sequence(:reference) { |n| FactoryHelper.reference(n) }
|
2015-09-27 13:51:13 +02:00
|
|
|
|
body "leipzig"
|
|
|
|
|
published_at "2015-07-20 21:16:53"
|
|
|
|
|
scraped_at "2015-07-20 21:16:53"
|
2016-02-19 08:39:30 +01:00
|
|
|
|
paper_type { FactoryHelper.paper_type }
|
2016-02-19 08:23:31 +01:00
|
|
|
|
originator { Faker::Name.name }
|
|
|
|
|
resolution { Faker::Lorem.paragraph(3) }
|
2015-09-27 13:51:13 +02:00
|
|
|
|
content "-------------------------------\n\n " # oh well...
|
|
|
|
|
end
|
|
|
|
|
end
|