-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Problem with attributes using _id
suffix.
#1512
Comments
Maybe this issue should be moved to |
I realized this is not a bug. It is working as planned here:
Is it possible to disable this behavior for specific attributes? |
See #1142 for past discussion |
Thanks @composerinteralia. I'm closing this issue to avoid duplicated. |
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Description
I have a field to represent payment gateway and payment gateway id (like an external id), but when I use a factory to create or build an object assigning some values to these attributes, FactoryBot cannot build it correctly.
Reproduction Steps
Expected behavior
payment_b
should havegateway
andgateway_id
filled with given attributes.Actual behavior
FactoryBot cannot fill
gateway
andgateway_id
attributes values.System configuration
factory_bot_rails 6.2.0:
factory_bot 6.2.0:
rails 6.1.4:
ruby 3.0.1:
The text was updated successfully, but these errors were encountered: