mirror of
https://github.com/CodeforLeipzig/stadtratmonitor.git
synced 2024-12-22 23:53:15 +01:00
Fix paper factory definition
This commit is contained in:
parent
ea13abc7c4
commit
e33931c47c
1 changed files with 4 additions and 4 deletions
|
@ -5,12 +5,12 @@ FactoryBot.define do
|
||||||
name { Faker::Lorem.sentence }
|
name { Faker::Lorem.sentence }
|
||||||
sequence(:url) { |n| Faker::Internet.url("ris.example.org", "/paper-#{n}.html") }
|
sequence(:url) { |n| Faker::Internet.url("ris.example.org", "/paper-#{n}.html") }
|
||||||
sequence(:reference) { |n| FactoryHelper.reference(n) }
|
sequence(:reference) { |n| FactoryHelper.reference(n) }
|
||||||
body "leipzig"
|
body { "leipzig" }
|
||||||
published_at "2015-07-20 21:16:53"
|
published_at { "2015-07-20 21:16:53" }
|
||||||
scraped_at "2015-07-20 21:16:53"
|
scraped_at { "2015-07-20 21:16:53" }
|
||||||
paper_type { FactoryHelper.paper_type }
|
paper_type { FactoryHelper.paper_type }
|
||||||
originator { Faker::Name.name }
|
originator { Faker::Name.name }
|
||||||
resolution { Faker::Lorem.paragraph(3) }
|
resolution { Faker::Lorem.paragraph(3) }
|
||||||
content "-------------------------------\n\n " # oh well...
|
content { "-------------------------------\n\n " }
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue