mirror of
https://github.com/CodeforLeipzig/stadtratmonitor.git
synced 2024-12-22 15:43:14 +01:00
Fix factories to actually return random data
This commit is contained in:
parent
6dd6387b39
commit
e351f12b3f
1 changed files with 4 additions and 4 deletions
|
@ -1,14 +1,14 @@
|
|||
FactoryGirl.define do
|
||||
factory :paper do
|
||||
name Faker::Lorem.sentence
|
||||
url Faker::Internet.url("example-ris.de")
|
||||
name { Faker::Lorem.sentence }
|
||||
url { Faker::Internet.url("ris.example.org") }
|
||||
reference "MyString"
|
||||
body "leipzig"
|
||||
published_at "2015-07-20 21:16:53"
|
||||
scraped_at "2015-07-20 21:16:53"
|
||||
paper_type "Verwaltungsstandpunkt"
|
||||
originator Faker::Name.name
|
||||
resolution Faker::Lorem.paragraph(3)
|
||||
originator { Faker::Name.name }
|
||||
resolution { Faker::Lorem.paragraph(3) }
|
||||
content "-------------------------------\n\n " # oh well...
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue