Factory Bot Tutorial for Beginners

แชร์
ฝัง
  • เผยแพร่เมื่อ 17 ธ.ค. 2024

ความคิดเห็น • 26

  • @BrainTrustDigital
    @BrainTrustDigital  3 ปีที่แล้ว +3

    ⏰ Timestamps
    0:00 Introduction
    0:42 Gem install
    1:46 factory_bot config
    2:59 Import support files
    3:45 Create a factory
    4:26 Use new factory
    6:34 Run Test Suite
    7:16 Using sequence
    8:35 Dynamic sequences
    9:47 Using Traits
    11:08 Nested factories
    11:51 Update user factory
    13:28 Using associations
    15:36 Using with devise create
    17:25 Explicit associations
    19:08 Push to GitHub
    20:28 Closing notes

  • @MoBetta42
    @MoBetta42 3 ปีที่แล้ว +3

    Great video!

    • @BrainTrustDigital
      @BrainTrustDigital  3 ปีที่แล้ว +2

      Thank you! Let me know if you have any topics you would like me to cover!

  • @overcomeridemudia3199
    @overcomeridemudia3199 2 ปีที่แล้ว

    Ur content is always clear and precise. Thank you!

  • @CHACHANUS
    @CHACHANUS 3 ปีที่แล้ว +2

    great tutorial for factoryBot, Thanks a lottt!!!!!!

    • @BrainTrustDigital
      @BrainTrustDigital  3 ปีที่แล้ว

      So glad you liked it! Please let me know if there are any other topics you would like me to try to cover.

  • @riyarb559
    @riyarb559 3 ปีที่แล้ว +1

    Nice explanation,
    Requesting you to make more rspec videos for testing rails app

    • @BrainTrustDigital
      @BrainTrustDigital  3 ปีที่แล้ว

      Thank you! I’ll see what I can come up with

  • @eonacademy5036
    @eonacademy5036 3 ปีที่แล้ว +1

    Great video!... I loved it!!!. I suscribed, thank you! =)

    • @BrainTrustDigital
      @BrainTrustDigital  3 ปีที่แล้ว +1

      Thank you some much! Glad you enjoyed the video. Do you have any areas around testing in rails you would like me to cover? I feel like there is not enough current content covering this topic.

  • @davisnicholas9123
    @davisnicholas9123 3 ปีที่แล้ว +2

    Very helpful! good job!

    • @BrainTrustDigital
      @BrainTrustDigital  3 ปีที่แล้ว

      Thanks, glad I could help! Let me know if you have any other topics you would like me to cover.

    • @shivangibansal5406
      @shivangibansal5406 ปีที่แล้ว

      @@BrainTrustDigital Can you please cover association with factory bot traits

  • @shashankkestwal4454
    @shashankkestwal4454 2 ปีที่แล้ว +1

    helpful !

  • @matheusribeiro4611
    @matheusribeiro4611 3 ปีที่แล้ว +1

    This is a very good video, thank you!

    • @BrainTrustDigital
      @BrainTrustDigital  3 ปีที่แล้ว

      Thank you! Really appreciate the kind words, let me know if there are any other topics you’d like me to cover!

  • @giauvo3955
    @giauvo3955 3 ปีที่แล้ว +1

    Thank you very much

    • @BrainTrustDigital
      @BrainTrustDigital  3 ปีที่แล้ว

      No problem, glad I could help! Let me know if there are other topics you’d like me to cover.

  • @alehunter15
    @alehunter15 3 ปีที่แล้ว

    Interesting material.
    I would also like to see content for Sinatra apps as well as an opinion video for ruby's future and rails market in USA :)

    • @alehunter15
      @alehunter15 3 ปีที่แล้ว +1

      +as for ror I would like to see an app using info from an api as apis' consumption is something there is not a lot of content online

  • @ramanan5185
    @ramanan5185 3 ปีที่แล้ว +1

    Create is not saving the instance to the database for me . I don't know why , could you help me ? Can I share my code someway

    • @BrainTrustDigital
      @BrainTrustDigital  3 ปีที่แล้ว

      Yes, is this a private or public project? If public, GitHub would be great for sharing.

    • @ramanan5185
      @ramanan5185 3 ปีที่แล้ว

      I fixed it mahn, thanks for the video !!!

  • @mateobravamateobrava989
    @mateobravamateobrava989 2 ปีที่แล้ว

    I could make associated traits work only with the following syntax
    trait :moderator do
    association :role, factory: :moderator_role
    end

  • @nejdetkadir4447
    @nejdetkadir4447 3 ปีที่แล้ว

    what is name of your bash theme