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

@ -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