stadtratmonitor/spec/factories/papers.rb

17 lines
656 B
Ruby
Raw Normal View History

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