Install Factory Bot with Ruby on Rails

Install Factory Bot with Ruby on Rails

CJ Avilla

3 года назад

10,654 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Thang Phan
Thang Phan - 21.07.2023 17:36

Thank you so much :)

Ответить
alain pilon
alain pilon - 12.06.2023 21:40

How do you handle a situation where you have a model with a very deep belongs_to association tree. In my case, the tree is 12 level deep and if I dont provide the belongs_to associated model in the factory, I get the ActiveRecord::RecordInvalid: Validation failed: XXXX must exist.

Ответить
tuchandra
tuchandra - 06.04.2023 17:50

Thank you for content 🎉

Ответить
haroldpepete
haroldpepete - 01.12.2022 01:17

can you do a video about has_and_belongs_to_many
in factorybot?

Ответить
subem81
subem81 - 25.08.2022 19:34

Wow CJ. Thank you so much for this series! Rails doesn't get enough love and your content is truly a pillar for me. Thank you!

Ответить
Qona'ah Nurussalamah
Qona'ah Nurussalamah - 21.04.2022 16:39

Well explained, super helpful. Thankyou!

Ответить
Dhru soni
Dhru soni - 01.08.2021 05:51

Clear understanding on the factory bot. Thank you
Can you create how the traits, associations work with it with the next episode. Waiting for the next demo.

Ответить
Pierre Quintero Hernandez
Pierre Quintero Hernandez - 09.07.2021 18:05

Excellent video ... A question.. how can I create a hash with factory...with traits to add additional attributes to principal factory hash..is that possible?

Ответить