Skip to content

Commit 235a49a

Browse files
committed
Remove initialize_profile, after_create call
Removed the `initialize_profile` method and the `after_create` call that uses it since the method may have unforeseen side effects on test setup.
1 parent c103d87 commit 235a49a

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

backend/spec/factories/users.rb

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -26,21 +26,9 @@
2626
#
2727

2828
FactoryBot.define do
29-
def initialize_profile
30-
create_profile!(
31-
checkin_reminder: true,
32-
onboarding_step_id: "onboarding-personal",
33-
most_recent_doses: {},
34-
most_recent_conditions_positions: {},
35-
most_recent_symptoms_positions: {},
36-
most_recent_treatments_positions: {}
37-
)
38-
end
39-
4029
factory :user do
4130
sequence(:email) { |number| "user#{number}@example.com" }
4231
password { "password123" }
4332
password_confirmation { "password123" }
44-
after(:create) { initialize_profile }
4533
end
4634
end

0 commit comments

Comments
 (0)