diff --git a/spec/fabricators/user_fabricator.rb b/spec/fabricators/user_fabricator.rb index a635af32896..5385b4f97a2 100644 --- a/spec/fabricators/user_fabricator.rb +++ b/spec/fabricators/user_fabricator.rb @@ -95,7 +95,7 @@ Fabricator(:anonymous, from: :user) do trust_level TrustLevel[1] trust_level_locked true - after_create do |user| + before_create do |user| user.custom_fields["master_id"] = 1 user.save! end