Skip to content

Commit adc69aa

Browse files
committed
Fix CI
1 parent b21fb77 commit adc69aa

5 files changed

Lines changed: 7 additions & 7 deletions

File tree

decidim-conferences/lib/decidim/conferences/seeds.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def call
9191
short_bio: Decidim::Faker::Localized.wrapped("<p>", "</p>") do
9292
Decidim::Faker::Localized.paragraph(sentence_count: 3)
9393
end,
94-
twitter_handle: ::Faker::Twitter.unique.screen_name,
94+
twitter_handle: ::Faker::X.unique.screen_name,
9595
personal_url: ::Faker::Internet.url,
9696
published_at: Time.current,
9797
conference:

decidim-core/lib/decidim/core/seeds.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def reset_column_information
106106
end
107107

108108
def create_organization!
109-
smtp_label = ENV.fetch("SMTP_FROM_LABEL", ::Faker::Twitter.unique.screen_name)
109+
smtp_label = ENV.fetch("SMTP_FROM_LABEL", ::Faker::X.unique.screen_name)
110110
smtp_email = ENV.fetch("SMTP_FROM_EMAIL", ::Faker::Internet.email)
111111

112112
primary_color, secondary_color, tertiary_color = [
@@ -134,7 +134,7 @@ def create_organization!
134134
from: "#{smtp_label} <#{smtp_email}>",
135135
from_email: smtp_email,
136136
from_label: smtp_label,
137-
user_name: ENV.fetch("SMTP_USERNAME", ::Faker::Twitter.unique.screen_name),
137+
user_name: ENV.fetch("SMTP_USERNAME", ::Faker::X.unique.screen_name),
138138
encrypted_password: Decidim::AttributeEncryptor.encrypt(ENV.fetch("SMTP_PASSWORD", ::Faker::Internet.password(min_length: 8))),
139139
address: ENV.fetch("SMTP_ADDRESS", nil) || ENV.fetch("DECIDIM_HOST", "localhost"),
140140
port: ENV.fetch("SMTP_PORT", nil) || ENV.fetch("DECIDIM_SMTP_PORT", "25")
@@ -202,7 +202,7 @@ def create_area!(area_type:)
202202
def create_user_group!(user:, verified_at:)
203203
user_group = Decidim::UserGroup.create!(
204204
name: ::Faker::Company.unique.name,
205-
nickname: ::Faker::Twitter.unique.screen_name,
205+
nickname: ::Faker::X.unique.screen_name,
206206
email: ::Faker::Internet.email,
207207
confirmed_at: Time.current,
208208
extended_data: {

decidim-core/lib/decidim/seeds.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def find_or_initialize_user_by(email:)
2121
user = Decidim::User.find_or_initialize_by(email:)
2222
user.update!(
2323
name: ::Faker::Name.name,
24-
nickname: ::Faker::Twitter.unique.screen_name,
24+
nickname: ::Faker::X.unique.screen_name,
2525
password: "decidim123456789",
2626
organization:,
2727
confirmed_at: Time.current,

decidim-dev/config/rubocop/faker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ Faker/DeprecatedArguments:
406406
- days
407407
- period
408408
- format
409-
Faker::Twitter:
409+
Faker::X:
410410
user:
411411
- include_status
412412
- include_email

decidim-proposals/lib/decidim/proposals/seeds.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def random_coauthor
153153
end
154154

155155
def random_nickname
156-
"#{::Faker::Twitter.unique.screen_name}-#{SecureRandom.hex(4)}"[0, 20]
156+
"#{::Faker::X.unique.screen_name}-#{SecureRandom.hex(4)}"[0, 20]
157157
end
158158

159159
def random_email(suffix:)

0 commit comments

Comments
 (0)