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) }
|
social_tag { SecureRandom.urlsafe_base64(4) }
|
||||||
email { Faker::Internet.email }
|
email { Faker::Internet.email }
|
||||||
sponsor_email { Faker::Internet.email }
|
sponsor_email { Faker::Internet.email }
|
||||||
facebook { Faker::Internet.url('facebook.com') }
|
facebook { Faker::Internet.url(host: 'facebook.com') }
|
||||||
googleplus { Faker::Internet.url('plus.google.com') }
|
googleplus { Faker::Internet.url(host: 'plus.google.com') }
|
||||||
twitter { Faker::Internet.url('twitter.com') }
|
twitter { Faker::Internet.url(host: 'twitter.com') }
|
||||||
instagram { Faker::Internet.url('instagram.com') }
|
instagram { Faker::Internet.url(host: 'instagram.com') }
|
||||||
|
|
||||||
conference
|
conference
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
FactoryBot.define do
|
FactoryBot.define do
|
||||||
factory :event do
|
factory :event do
|
||||||
title { Faker::Hipster.sentence }
|
title { Faker::Hipster.sentence }
|
||||||
abstract { Faker::Hipster.paragraph(2) }
|
abstract { Faker::Hipster.paragraph(sentence_count: 2) }
|
||||||
|
|
||||||
program
|
program
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
FactoryBot.define do
|
FactoryBot.define do
|
||||||
factory :track do
|
factory :track do
|
||||||
name { Faker::Commerce.department(2, true) }
|
name { Faker::Commerce.department(max: 2, fixed_amount: true) }
|
||||||
description { Faker::Lorem.sentence }
|
description { Faker::Lorem.sentence }
|
||||||
color { Faker::Color.hex_color }
|
color { Faker::Color.hex_color }
|
||||||
short_name { SecureRandom.urlsafe_base64(5) }
|
short_name { SecureRandom.urlsafe_base64(5) }
|
||||||
|
|
@ -17,7 +17,7 @@ FactoryBot.define do
|
||||||
start_date { Time.zone.today }
|
start_date { Time.zone.today }
|
||||||
end_date { Time.zone.today }
|
end_date { Time.zone.today }
|
||||||
room
|
room
|
||||||
relevance { Faker::Hipster.paragraph(2) }
|
relevance { Faker::Hipster.paragraph(sentence_count: 2) }
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue