Autocorrect Faker deprecations

This commit is contained in:
Henne Vogelsang 2022-02-11 16:55:39 +01:00
parent 639fb5ff0d
commit ca80b753e7
No known key found for this signature in database
GPG key ID: 97DDB66BDAF8D4D6
3 changed files with 7 additions and 7 deletions

View file

@ -5,10 +5,10 @@ FactoryBot.define do
social_tag { SecureRandom.urlsafe_base64(4) }
email { Faker::Internet.email }
sponsor_email { Faker::Internet.email }
facebook { Faker::Internet.url('facebook.com') }
googleplus { Faker::Internet.url('plus.google.com') }
twitter { Faker::Internet.url('twitter.com') }
instagram { Faker::Internet.url('instagram.com') }
facebook { Faker::Internet.url(host: 'facebook.com') }
googleplus { Faker::Internet.url(host: 'plus.google.com') }
twitter { Faker::Internet.url(host: 'twitter.com') }
instagram { Faker::Internet.url(host: 'instagram.com') }
conference
end

View file

@ -5,7 +5,7 @@
FactoryBot.define do
factory :event do
title { Faker::Hipster.sentence }
abstract { Faker::Hipster.paragraph(2) }
abstract { Faker::Hipster.paragraph(sentence_count: 2) }
program

View file

@ -2,7 +2,7 @@
FactoryBot.define do
factory :track do
name { Faker::Commerce.department(2, true) }
name { Faker::Commerce.department(max: 2, fixed_amount: true) }
description { Faker::Lorem.sentence }
color { Faker::Color.hex_color }
short_name { SecureRandom.urlsafe_base64(5) }
@ -17,7 +17,7 @@ FactoryBot.define do
start_date { Time.zone.today }
end_date { Time.zone.today }
room
relevance { Faker::Hipster.paragraph(2) }
relevance { Faker::Hipster.paragraph(sentence_count: 2) }
end
end
end