From e33931c47c33efd657e81cb4db7d8729cdc80bfd Mon Sep 17 00:00:00 2001 From: Lars Henrik Mai Date: Mon, 9 Mar 2020 11:12:55 +0100 Subject: [PATCH] Fix paper factory definition --- spec/factories/papers.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spec/factories/papers.rb b/spec/factories/papers.rb index ba5dc20..2a4a354 100644 --- a/spec/factories/papers.rb +++ b/spec/factories/papers.rb @@ -5,12 +5,12 @@ FactoryBot.define do name { Faker::Lorem.sentence } sequence(:url) { |n| Faker::Internet.url("ris.example.org", "/paper-#{n}.html") } sequence(:reference) { |n| FactoryHelper.reference(n) } - body "leipzig" - published_at "2015-07-20 21:16:53" - scraped_at "2015-07-20 21:16:53" + 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... + content { "-------------------------------\n\n " } end end