mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 11:44:02 +00:00
Autocorrect Faker deprecations
This commit is contained in:
parent
639fb5ff0d
commit
ca80b753e7
3 changed files with 7 additions and 7 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue