Set custom fields before saving in fabricator.
This commit is contained in:
parent
41711e53b7
commit
b479aa0598
|
@ -95,7 +95,7 @@ Fabricator(:anonymous, from: :user) do
|
||||||
trust_level TrustLevel[1]
|
trust_level TrustLevel[1]
|
||||||
trust_level_locked true
|
trust_level_locked true
|
||||||
|
|
||||||
after_create do |user|
|
before_create do |user|
|
||||||
user.custom_fields["master_id"] = 1
|
user.custom_fields["master_id"] = 1
|
||||||
user.save!
|
user.save!
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue