mirror of
https://github.com/CodeforLeipzig/stadtratmonitor.git
synced 2025-04-20 07:11:33 +02:00
Rubocop autocorrect specs
This commit is contained in:
parent
247f4b85b7
commit
5c2e1bfe1e
13 changed files with 279 additions and 269 deletions
|
@ -1,13 +1,15 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require_relative '../factory_helper'
|
||||
|
||||
FactoryBot.define do
|
||||
factory :paper do
|
||||
name { Faker::Lorem.sentence }
|
||||
sequence(:url) { |n| Faker::Internet.url(host: "ris.example.org", path: "/paper-#{n}.html") }
|
||||
sequence(:url) { |n| Faker::Internet.url(host: 'ris.example.org', path: "/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(sentence_count: 3) }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue