mirror of
https://github.com/CodeforLeipzig/stadtratmonitor.git
synced 2025-04-20 07:11:33 +02:00
Move factories to spec dir and add helper module
This commit is contained in:
parent
e351f12b3f
commit
d9f95f9e97
2 changed files with 26 additions and 1 deletions
|
@ -1,14 +0,0 @@
|
|||
FactoryGirl.define do
|
||||
factory :paper do
|
||||
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) }
|
||||
content "-------------------------------\n\n " # oh well...
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue