mirror of
https://github.com/CodeforLeipzig/stadtratmonitor.git
synced 2025-04-20 07:11:33 +02:00
Refactor and expand Paper validations
This commit is contained in:
parent
5dcbc7c73d
commit
631dca322c
6 changed files with 90 additions and 9 deletions
14
test/factories/papers.rb
Normal file
14
test/factories/papers.rb
Normal file
|
@ -0,0 +1,14 @@
|
|||
FactoryGirl.define do
|
||||
factory :paper do
|
||||
name Faker::Lorem.sentence
|
||||
url Faker::Internet.url("example-ris.de")
|
||||
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